From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 12 Dec 2017 17:53:02 +0000 (-0800) Subject: Fix implementation dependent assertion in test_plistlib. (GH-4813) (#4815) X-Git-Tag: v3.6.5rc1~213 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb2f222aaeab20a65defe69f7b57c505b8ef87b1;p=thirdparty%2FPython%2Fcpython.git Fix implementation dependent assertion in test_plistlib. (GH-4813) (#4815) It is failed with an advanced optimizer. (cherry picked from commit 0e069a1597ce6791a5f0da8329da2c446766c80e) --- diff --git a/Lib/test/test_plistlib.py b/Lib/test/test_plistlib.py index 90641a7635c0..d47c607329cd 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 = {