Commit 0e069a15 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

Fix implementation dependent assertion in test_plistlib. (#4813)

It is failed with an advanced optimizer.
parent 4ae06c53
......@@ -320,7 +320,8 @@ class TestPlistlib(unittest.TestCase):
'second': [1, 2],
'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):
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