]> granicus.if.org Git - python/commitdiff
Fix implementation dependent assertion in test_plistlib. (#4813)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 12 Dec 2017 17:03:08 +0000 (19:03 +0200)
committerGitHub <noreply@github.com>
Tue, 12 Dec 2017 17:03:08 +0000 (19:03 +0200)
It is failed with an advanced optimizer.

Lib/test/test_plistlib.py

index ae8b6239690d3220db06ce07af02d820ce52b949..8d8e0a750a224bba9209e4e4d07b419d0494bf34 100644 (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 = {