Skip to content

Commit eb2f222

Browse files
miss-islingtonserhiy-storchaka
authored andcommitted
Fix implementation dependent assertion in test_plistlib. (GH-4813) (#4815)
It is failed with an advanced optimizer. (cherry picked from commit 0e069a1)
1 parent 78cd00b commit eb2f222

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
@@ -321,7 +321,8 @@ def test_tuple_members(self):
321321
'second': [1, 2],
322322
'third': [3, 4],
323323
})
324-
self.assertIsNot(pl2['first'], pl2['second'])
324+
if fmt != plistlib.FMT_BINARY:
325+
self.assertIsNot(pl2['first'], pl2['second'])
325326

326327
def test_list_members(self):
327328
pl = {

0 commit comments

Comments
 (0)