[Python-checkins] Fix implementation dependent assertion in test_plistlib. (GH-4813) (#4815)
Serhiy Storchaka
webhook-mailer at python.org
Tue Dec 12 12:53:09 EST 2017
https://github.com/python/cpython/commit/eb2f222aaeab20a65defe69f7b57c505b8ef87b1
commit: eb2f222aaeab20a65defe69f7b57c505b8ef87b1
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2017-12-12T19:53:02+02:00
summary:
Fix implementation dependent assertion in test_plistlib. (GH-4813) (#4815)
It is failed with an advanced optimizer.
(cherry picked from commit 0e069a1597ce6791a5f0da8329da2c446766c80e)
files:
M Lib/test/test_plistlib.py
diff --git a/Lib/test/test_plistlib.py b/Lib/test/test_plistlib.py
index 90641a7635c..d47c607329c 100644
--- a/Lib/test/test_plistlib.py
+++ b/Lib/test/test_plistlib.py
@@ -321,7 +321,8 @@ def test_tuple_members(self):
'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 = {
More information about the Python-checkins
mailing list