Skip to content

Commit 0e069a1

Browse files
Fix implementation dependent assertion in test_plistlib. (#4813)
It is failed with an advanced optimizer.
1 parent 4ae06c5 commit 0e069a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_plistlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ def test_tuple_members(self):
320320
'second': [1, 2],
321321
'third': [3, 4],
322322
})
323-
self.assertIsNot(pl2['first'], pl2['second'])
323+
if fmt != plistlib.FMT_BINARY:
324+
self.assertIsNot(pl2['first'], pl2['second'])
324325

325326
def test_list_members(self):
326327
pl = {

0 commit comments

Comments
 (0)