summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-09-20 09:00:38 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-09-20 09:00:38 +0200
commitd86f67d2e0c3f730c9c8309bd28c5318c4ebcedd (patch)
tree4c035b5139f6f4a9ccf37eab656c6cf88b4af7c3 /_test
parentd3bd516b32e076af856897defdad212e8fcfd878 (diff)
downloadruamel.yaml-d86f67d2e0c3f730c9c8309bd28c5318c4ebcedd.tar.gz
fix issue 236 newline without proper following indent on nested flow-style sequences.
*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.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py
index 76e964c..3a56ccc 100644
--- a/_test/test_issues.py
+++ b/_test/test_issues.py
@@ -442,15 +442,14 @@ class TestIssues:
print(repr(fold))
assert '\a' not in fold
- @pytest.mark.xfail(strict=True, reason='newline in nested flow sequence',
- raises=AssertionError)
def test_issue_236(self):
inp = """
conf:
xx: {a: "b", c: []}
- asd: "nn"
+ asd: "nn"
"""
- d = round_trip(inp) # NOQA
+ d = round_trip(inp, preserve_quotes=True) # NOQA
+
# def test_issue_xxx(self):
# inp = """