[Python-checkins] Fix implementation dependent assertion in test_plistlib. (#4813)

Serhiy Storchaka webhook-mailer at python.org
Tue Dec 12 12:03:11 EST 2017


https://github.com/python/cpython/commit/0e069a1597ce6791a5f0da8329da2c446766c80e
commit: 0e069a1597ce6791a5f0da8329da2c446766c80e
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-12-12T19:03:08+02:00
summary:

Fix implementation dependent assertion in test_plistlib. (#4813)

It is failed with an advanced optimizer.

files:
M Lib/test/test_plistlib.py

diff --git a/Lib/test/test_plistlib.py b/Lib/test/test_plistlib.py
index ae8b6239690..8d8e0a750a2 100644
--- a/Lib/test/test_plistlib.py
+++ b/Lib/test/test_plistlib.py
@@ -320,7 +320,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