diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-12-12 19:03:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 19:03:08 +0200 |
commit | 0e069a1597ce6791a5f0da8329da2c446766c80e (patch) | |
tree | e98794d8467d04eb83d845216844efb458c6ed69 | |
parent | 4ae06c5337e01bdde28bce57b6b9166ad50947e3 (diff) | |
download | cpython-git-0e069a1597ce6791a5f0da8329da2c446766c80e.tar.gz |
Fix implementation dependent assertion in test_plistlib. (#4813)
It is failed with an advanced optimizer.
-rw-r--r-- | Lib/test/test_plistlib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_plistlib.py b/Lib/test/test_plistlib.py index ae8b623969..8d8e0a750a 100644 --- a/Lib/test/test_plistlib.py +++ b/Lib/test/test_plistlib.py @@ -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 = { |