summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-09-07 14:07:26 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-09-07 14:07:26 +0200
commite9f456c03708ca2c1c7617cb8f1fd2ffe8a018d3 (patch)
treea9097537a756e2c08d1ac78c3b3f392c7a755625
parentad7663774ad3b8a6f082e628ceea63e7615ce3a1 (diff)
downloadruamel.yaml-e9f456c03708ca2c1c7617cb8f1fd2ffe8a018d3.tar.gz
added failing test for issue @234
-rw-r--r--_test/test_issues.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py
index 07097c8..460acf9 100644
--- a/_test/test_issues.py
+++ b/_test/test_issues.py
@@ -389,3 +389,22 @@ class TestIssues:
yaml.safe_load(']')
with pytest.raises(ruamel.yaml.parser.ParserError):
yaml.safe_load('{]')
+
+ def test_issue_234(self):
+ import ruamel.yaml
+ from ruamel.yaml import YAML
+
+ inp = dedent("""\
+ - key: key1
+ ctx: [one, two]
+ help: one
+ cmd: >
+ foo bar
+ foo bar
+ """)
+ yaml = YAML(typ='safe', pure=True)
+ data = yaml.load(inp)
+ # data = ruamel.yaml.safe_load(inp)
+ fold = data[0]['cmd']
+ print(repr(fold))
+ assert '\a' not in fold