mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #26711: Fixed the comparison of plistlib.Data with other types.
This commit is contained in:
commit
47d1d7f48a
3 changed files with 7 additions and 5 deletions
|
@ -514,15 +514,15 @@ class TestPlistlibDeprecated(unittest.TestCase):
|
|||
|
||||
cur = plistlib.loads(buf)
|
||||
self.assertEqual(cur, out_data)
|
||||
self.assertNotEqual(cur, in_data)
|
||||
self.assertEqual(cur, in_data)
|
||||
|
||||
cur = plistlib.loads(buf, use_builtin_types=False)
|
||||
self.assertNotEqual(cur, out_data)
|
||||
self.assertEqual(cur, out_data)
|
||||
self.assertEqual(cur, in_data)
|
||||
|
||||
with self.assertWarns(DeprecationWarning):
|
||||
cur = plistlib.readPlistFromBytes(buf)
|
||||
self.assertNotEqual(cur, out_data)
|
||||
self.assertEqual(cur, out_data)
|
||||
self.assertEqual(cur, in_data)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue