summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2023-05-01 20:07:58 +0200
committerAnthon van der Neut <anthon@mnt.org>2023-05-01 20:07:58 +0200
commit913318287aacca50246fd44fa5682e3907c1c78a (patch)
tree6031c22905170e5192a3d7b649751cdcb7503cb8 /_test
parent8b731994b1543d7886af85f926d9eea5a22d0732 (diff)
downloadruamel.yaml-913318287aacca50246fd44fa5682e3907c1c78a.tar.gz
repr of commentedmap simplified
Diffstat (limited to '_test')
-rw-r--r--_test/test_comments.py4
-rw-r--r--_test/test_issues.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/_test/test_comments.py b/_test/test_comments.py
index 64b8cd2..6c3d8c3 100644
--- a/_test/test_comments.py
+++ b/_test/test_comments.py
@@ -517,7 +517,7 @@ class TestCommentedMapMerge:
""")
assert data['x']['a'] == 1
assert data['y']['a'] == 1
- assert str(data['y']) == """ordereddict([('a', 1)])"""
+ assert str(data['y']) == """{'a': 1}"""
def test_issue_60_1(self) -> None:
data = round_trip_load("""
@@ -529,7 +529,7 @@ class TestCommentedMapMerge:
""")
assert data['x']['a'] == 1
assert data['y']['a'] == 1
- assert str(data['y']) == """ordereddict([('b', 2), ('a', 1)])"""
+ assert str(data['y']) == """{'b': 2, 'a': 1}"""
class TestEmptyLines:
diff --git a/_test/test_issues.py b/_test/test_issues.py
index 7106453..ec90555 100644
--- a/_test/test_issues.py
+++ b/_test/test_issues.py
@@ -29,7 +29,7 @@ class TestIssues:
""")
data = round_trip_load(s)
assert str(data['comb']) == str(data['def'])
- assert str(data['comb']) == "ordereddict([('key', 'value'), ('key1', 'value1')])"
+ assert str(data['comb']) == "{'key': 'value', 'key1': 'value1'}"
# def test_issue_82(self, tmpdir):
# program_src = r'''