summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-18 12:46:39 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-18 12:46:39 +0200
commitc0f02842ced2240ec35315b0b88c775ae5423be9 (patch)
tree5ec77311b0abcbbd1b188e745cce688d1548372b /_test
parenta14b9f18f48a8151650ebcac34f812a6b5e5eb63 (diff)
downloadruamel.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.py12
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