summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-17 18:15:32 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-17 18:15:32 +0200
commit505784248165b4f938534f015a47b568635ae9f5 (patch)
treef7a0dade4486560f7cb263fc02b986240cf8fefe /_test
parent959ba7188462977305d512fe4cbdeeca7b0c0d78 (diff)
downloadruamel.yaml-505784248165b4f938534f015a47b568635ae9f5.tar.gz
failing test re #223 Cloader with uninitialized resolver version
Diffstat (limited to '_test')
-rw-r--r--_test/test_issues.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py
index cd9521c..bd47155 100644
--- a/_test/test_issues.py
+++ b/_test/test_issues.py
@@ -279,10 +279,16 @@ class TestIssues:
""")
assert buf.getvalue() == exp
- def test_issue_22(self):
+ def test_issue_222(self):
import ruamel.yaml
from ruamel.yaml.compat import StringIO
buf = StringIO()
ruamel.yaml.safe_dump(['012923'], buf)
assert buf.getvalue() == "['012923']\n"
+
+ @pytest.mark.xfail(strict=True)
+ def test_issue_223(self):
+ import ruamel.yaml
+ yaml = ruamel.yaml.YAML(typ='safe')
+ yaml.load("phone: 0123456789")