Fix implementation dependent assertion in test_plistlib. (#4813)

It is failed with an advanced optimizer.
This commit is contained in:
Serhiy Storchaka 2017-12-12 19:03:08 +02:00 committed by GitHub
parent 4ae06c5337
commit 0e069a1597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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 = {