diff options
Diffstat (limited to '_test')
-rw-r--r-- | _test/test_issues.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/_test/test_issues.py b/_test/test_issues.py index d37b297..825d66c 100644 --- a/_test/test_issues.py +++ b/_test/test_issues.py @@ -108,7 +108,7 @@ class TestIssues: yaml = YAML() data = yaml.load(inp) child = data['child'] - assert 'second' in {**child} + assert 'second' in dict(**child) def test_issue_160(self): s = dedent("""\ @@ -407,22 +407,22 @@ class TestIssues: with pytest.raises(ruamel.yaml.parser.ParserError): yaml.safe_load('{]') - @pytest.mark.xfail(strict=True, reason="not a dict subclass", raises=TypeError) + @pytest.mark.xfail(strict=True, reason='not a dict subclass', raises=TypeError) def test_issue_233(self): from ruamel.yaml import YAML import json - + yaml = YAML() - data = yaml.load("{}") + data = yaml.load('{}') json_str = json.dumps(data) - @pytest.mark.xfail(strict=True, reason="not a list subclass", raises=TypeError) + @pytest.mark.xfail(strict=True, reason='not a list subclass', raises=TypeError) def test_issue_233a(self): from ruamel.yaml import YAML import json - + yaml = YAML() - data = yaml.load("[]") + data = yaml.load('[]') json_str = json.dumps(data) def test_issue_234(self): |