Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 65545b5

Browse files
committedDec 12, 2017
Fix implementation dependent assertion in test_plistlib. (python#4813)
It is failed with an advanced optimizer.
1 parent 8852c5b commit 65545b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎Lib/test/test_plistlib.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ def test_tuple_members(self):
322322
'second': [1, 2],
323323
'third': [3, 4],
324324
})
325-
self.assertIsNot(pl2['first'], pl2['second'])
325+
if fmt != plistlib.FMT_BINARY:
326+
self.assertIsNot(pl2['first'], pl2['second'])
326327

327328
def test_list_members(self):
328329
pl = {

0 commit comments

Comments
 (0)
Failed to load comments.