summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-09-09 11:45:12 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-09-09 11:45:12 +0200
commit8227f3f7f151e981def0c7f698cc8f9c7e64149f (patch)
tree965c5788a30a99aa06b4990e7097383d086e43dd
parent173003d9e07bde956eceda83f02224ceb082b4c7 (diff)
downloadruamel.yaml-8227f3f7f151e981def0c7f698cc8f9c7e64149f.tar.gz
py2, oitnb
-rw-r--r--_test/test_issues.py14
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):