Kaydet (Commit) eb2f222a authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Serhiy Storchaka

Fix implementation dependent assertion in test_plistlib. (GH-4813) (#4815)

It is failed with an advanced optimizer.
(cherry picked from commit 0e069a15)
üst 78cd00b7
...@@ -321,7 +321,8 @@ class TestPlistlib(unittest.TestCase): ...@@ -321,7 +321,8 @@ class TestPlistlib(unittest.TestCase):
'second': [1, 2], 'second': [1, 2],
'third': [3, 4], 'third': [3, 4],
}) })
self.assertIsNot(pl2['first'], pl2['second']) if fmt != plistlib.FMT_BINARY:
self.assertIsNot(pl2['first'], pl2['second'])
def test_list_members(self): def test_list_members(self):
pl = { pl = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment