From 0e069a1597ce6791a5f0da8329da2c446766c80e Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 12 Dec 2017 19:03:08 +0200 Subject: [PATCH] Fix implementation dependent assertion in test_plistlib. (#4813) It is failed with an advanced optimizer. --- Lib/test/test_plistlib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = { -- 2.40.0