summaryrefslogtreecommitdiff
path: root/_test/test_fail.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-08-13 12:25:39 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-08-13 12:25:39 +0200
commit56a22f859d4fa1a0be6a6335fb7e9232ea9e9239 (patch)
treef6cf09417fc8b65877d9c3b04325190404d3bce3 /_test/test_fail.py
parentd27c1ffe8156ee462cd7f6b0e812c4f84d0b02d6 (diff)
downloadruamel.yaml-56a22f859d4fa1a0be6a6335fb7e9232ea9e9239.tar.gz
fix lists within lists with comments
had to keep emit the comment and mark it for having been emitted, then reset on next run (as with maps)
Diffstat (limited to '_test/test_fail.py')
-rw-r--r--_test/test_fail.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/_test/test_fail.py b/_test/test_fail.py
index 61b8ffb..fb85e5f 100644
--- a/_test/test_fail.py
+++ b/_test/test_fail.py
@@ -73,48 +73,6 @@ class TestCommentFailures:
class TestIndentFailures:
@pytest.mark.xfail(strict=True)
- def test_roundtrip_four_space_indents(self):
- s = (
- 'a:\n'
- '- foo\n'
- '- bar\n'
- )
- output = round_trip(s)
- assert s == output
-
- def test_roundtrip_four_space_indents_no_fail(self):
- assert round_trip_dump(round_trip_load("""
- a:
- - foo
- - bar
- """)) == dedent("""
- a:
- - foo
- - bar
- """)
-
- @pytest.mark.xfail(strict=True)
- def test_roundtrip_four_space_indents_expl_indent(self):
- s = (
- 'a:\n'
- '- foo\n'
- '- bar\n'
- )
- output = round_trip_dump(round_trip_load(s), indent=4)
- assert s == output
-
- def test_roundtrip_four_space_indents_expl_indent_no_fail(self):
- assert round_trip_dump(round_trip_load("""
- a:
- - foo
- - bar
- """), indent=4) == dedent("""
- a:
- - foo
- - bar
- """)
-
- @pytest.mark.xfail(strict=True)
def test_indent_not_retained(self):
round_trip("""
verbosity: 1 # 0 is minimal output, -1 none