diff options
| author | Anthon van der Neut <anthon@mnt.org> | 2018-09-07 10:20:34 +0200 |
|---|---|---|
| committer | Anthon van der Neut <anthon@mnt.org> | 2018-09-07 10:20:34 +0200 |
| commit | a2afbcfe5398c971ed59d583eb88588c789bfa67 (patch) | |
| tree | 4fe61f32162f29e82294ac82e0fd3a3693683783 /_test | |
| parent | 56383ab8491ed86f6a2133aeff2dd03dad4e829a (diff) | |
| download | ruamel.yaml-a2afbcfe5398c971ed59d583eb88588c789bfa67.tar.gz | |
roll out new version, with some fixes/enhancements0.15.65
Diffstat (limited to '_test')
| -rw-r--r-- | _test/test_issues.py | 7 | ||||
| -rw-r--r-- | _test/test_spec_examples.py | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py index d6eadc6..07097c8 100644 --- a/_test/test_issues.py +++ b/_test/test_issues.py @@ -134,7 +134,7 @@ class TestIssues: x = round_trip(s, preserve_quotes=True) # NOQA json_str = ( - '{"sshKeys":[{"name":"AETROS\/google-k80-1","uses":0,"getLastUse":0,' + r'{"sshKeys":[{"name":"AETROS\/google-k80-1","uses":0,"getLastUse":0,' '"fingerprint":"MD5:19:dd:41:93:a1:a3:f5:91:4a:8e:9b:d0:ae:ce:66:4c",' '"created":1509497961}]}' ) @@ -384,7 +384,8 @@ class TestIssues: def test_issue_232(self): import ruamel.yaml from ruamel import yaml + with pytest.raises(ruamel.yaml.parser.ParserError): - yaml.safe_load(']') + yaml.safe_load(']') with pytest.raises(ruamel.yaml.parser.ParserError): - yaml.safe_load('{]') + yaml.safe_load('{]') diff --git a/_test/test_spec_examples.py b/_test/test_spec_examples.py index c95b5aa..bae505d 100644 --- a/_test/test_spec_examples.py +++ b/_test/test_spec_examples.py @@ -182,7 +182,7 @@ def test_example_2_12(): @pytest.mark.xfail(strict=True) def test_example_2_13(): yaml = YAML() - yaml.round_trip(""" + yaml.round_trip(r""" # ASCII Art --- | \//||\/|| |
