diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-08-17 18:15:32 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-08-17 18:15:32 +0200 |
commit | 505784248165b4f938534f015a47b568635ae9f5 (patch) | |
tree | f7a0dade4486560f7cb263fc02b986240cf8fefe /_test | |
parent | 959ba7188462977305d512fe4cbdeeca7b0c0d78 (diff) | |
download | ruamel.yaml-505784248165b4f938534f015a47b568635ae9f5.tar.gz |
failing test re #223 Cloader with uninitialized resolver version
Diffstat (limited to '_test')
-rw-r--r-- | _test/test_issues.py | 8 |
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") |