From 913318287aacca50246fd44fa5682e3907c1c78a Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Mon, 1 May 2023 20:07:58 +0200 Subject: repr of commentedmap simplified --- _test/test_comments.py | 4 ++-- _test/test_issues.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to '_test') 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''' -- cgit v1.2.1