diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-12-12 17:53:02 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-12-12 17:53:02 (GMT) |
commit | eb2f222aaeab20a65defe69f7b57c505b8ef87b1 (patch) | |
tree | 6618e788c6d92df2423de6dec55b63638809f26a /Lib/test | |
parent | 78cd00b799be36a35c9f5cc99ce3bcef31112a5f (diff) | |
download | cpython-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.py | 3 |
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 = { |