summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-12-12 17:53:02 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-12-12 17:53:02 (GMT)
commiteb2f222aaeab20a65defe69f7b57c505b8ef87b1 (patch)
tree6618e788c6d92df2423de6dec55b63638809f26a /Lib/test
parent78cd00b799be36a35c9f5cc99ce3bcef31112a5f (diff)
downloadcpython-eb2f222aaeab20a65defe69f7b57c505b8ef87b1.zip
cpython-eb2f222aaeab20a65defe69f7b57c505b8ef87b1.tar.gz
cpython-eb2f222aaeab20a65defe69f7b57c505b8ef87b1.tar.bz2
Fix implementation dependent assertion in test_plistlib. (GH-4813) (#4815)
It is failed with an advanced optimizer. (cherry picked from commit 0e069a1597ce6791a5f0da8329da2c446766c80e)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_plistlib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_plistlib.py b/Lib/test/test_plistlib.py
index 90641a7..d47c607 100644
--- a/Lib/test/test_plistlib.py
+++ b/Lib/test/test_plistlib.py
@@ -321,7 +321,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 = {