summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-09-20 14:47:33 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-09-20 14:47:33 +0200
commitc706e5ec84f7520b1e63110af89f441ebdbceae6 (patch)
treee01d484ae6318e2e156431101fa6a39de5571d62 /_test
parent1f7125afdc2521b578fc399993a84f7eef94c39c (diff)
downloadruamel.yaml-c706e5ec84f7520b1e63110af89f441ebdbceae6.tar.gz
added failing test re issue #239
Diffstat (limited to '_test')
-rw-r--r--_test/test_issues.py24
1 files changed, 23 insertions, 1 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py
index 0612be1..9c06af4 100644
--- a/_test/test_issues.py
+++ b/_test/test_issues.py
@@ -12,6 +12,7 @@ from roundtrip import (
round_trip_dump,
dedent,
save_and_run,
+ YAML,
) # NOQA
@@ -482,8 +483,29 @@ class TestIssues:
"""
assert save_and_run(dedent(program_src), tmpdir) == 0
+ @pytest.mark.xfail(strict=True, reason='bla bla', raises=AssertionError)
+ def test_issue_xxx(self):
+ inp = """
+ first_name: Art
+ occupation: Architect
+ # I'm safe
+ about: Art Vandelay is a fictional character that George invents...
+ # we are not :(
+ # help me!
+ ---
+ # what?!
+ hello: world
+ # someone call the Batman
+ foo: bar # or quz
+ # Lost again
+ ---
+ I: knew
+ """
+ d = YAML().round_trip_all(inp) # NOQA
+
+# @pytest.mark.xfail(strict=True, reason='bla bla', raises=AssertionError)
# def test_issue_xxx(self):
# inp = """
-# """)
+# """
# d = round_trip(inp) # NOQA