diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-18 12:46:39 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-18 12:46:39 +0200 |
commit | c0f02842ced2240ec35315b0b88c775ae5423be9 (patch) | |
tree | 5ec77311b0abcbbd1b188e745cce688d1548372b /_test | |
parent | a14b9f18f48a8151650ebcac34f812a6b5e5eb63 (diff) | |
download | ruamel.yaml-c0f02842ced2240ec35315b0b88c775ae5423be9.tar.gz |
fix issue #219 breakage on single entry map as flow sequence element0.15.60
*When this change indeed resolves your problem, please **Close** this issue*.
*(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to '_test')
-rw-r--r-- | _test/test_issues.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py index 0d1f0ca..ec793ea 100644 --- a/_test/test_issues.py +++ b/_test/test_issues.py @@ -233,13 +233,19 @@ class TestIssues: d.yaml_add_eol_comment('test1', 'bar') assert round_trip_dump(d) == yaml_str + 'bar: foo # test1\n' - @pytest.mark.xfail(strict=True) def test_issue_219(self): yaml_str = dedent("""\ [StackName: AWS::StackName] """) - d = round_trip_load(yaml_str) - + d = round_trip_load(yaml_str) # NOQA + + def test_issue_219a(self): + yaml_str = dedent("""\ + [StackName: + AWS::StackName] + """) + d = round_trip_load(yaml_str) # NOQA + def test_issue_220(self, tmpdir): program_src = r''' from ruamel.yaml import YAML |