From 334c992703b2093a26b59d2cac403375b568c617 Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Sat, 6 Oct 2018 19:17:37 +0200 Subject: failing test re #245 --- _test/test_issues.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to '_test') 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): -- cgit v1.2.1