diff options
author | Anthon van der Neut <anthon@mnt.org> | 2018-10-06 19:17:37 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2018-10-06 19:17:37 +0200 |
commit | 334c992703b2093a26b59d2cac403375b568c617 (patch) | |
tree | 46990e58ab4e6a6daf91f4b073287793c946e5da /_test | |
parent | cdbd44762e625d6719299b29ce1906d5995e6da3 (diff) | |
download | ruamel.yaml-334c992703b2093a26b59d2cac403375b568c617.tar.gz |
failing test re #245
Diffstat (limited to '_test')
-rw-r--r-- | _test/test_issues.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py index fcf1094..4ccbff4 100644 --- a/_test/test_issues.py +++ b/_test/test_issues.py @@ -514,6 +514,25 @@ class TestIssues: d0 = CommentedMap([('a', 'b')]) assert d0['a'] == 'b' + @pytest.mark.xfail(strict=True, reason='regression on Yes', raises=AssertionError) + def test_issue_xxx(self): + from ruamel.yaml import YAML + inp = """ + d: yes + """ + for typ in ['safepure', 'rt', 'safe']: + if typ.endswith('pure'): + pure = True + typ = typ[:-4] + else: + pure = None + + yaml = YAML(typ=typ, pure=pure) + yaml.version = (1, 1) + d = yaml.load(inp) + print(typ, yaml.parser, yaml.resolver) + assert d['d'] is True + # @pytest.mark.xfail(strict=True, reason='bla bla', raises=AssertionError) # def test_issue_xxx(self): |