summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_plistlib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-05-15 10:21:31 (GMT)
committerGitHub <noreply@github.com>2017-05-15 10:21:31 (GMT)
commitedef358ed6d05f927bf1636cc5a920a9d868b131 (patch)
tree287ae68661a797aa09b0aa979f776a5329b7c881 /Lib/test/test_plistlib.py
parentd812eb731d886065bdd9bc94a3f0e5dfdcd671a4 (diff)
downloadcpython-edef358ed6d05f927bf1636cc5a920a9d868b131.zip
cpython-edef358ed6d05f927bf1636cc5a920a9d868b131.tar.gz
cpython-edef358ed6d05f927bf1636cc5a920a9d868b131.tar.bz2
bpo-29196: Removed old-deprecated classes Plist, Dict and _InternalDict (#488)
in the plistlib module. Dict values in the result of functions readPlist() and readPlistFromBytes() are now exact dicts.
Diffstat (limited to 'Lib/test/test_plistlib.py')
-rw-r--r--Lib/test/test_plistlib.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/Lib/test/test_plistlib.py b/Lib/test/test_plistlib.py
index c77a6bf..58b885f 100644
--- a/Lib/test/test_plistlib.py
+++ b/Lib/test/test_plistlib.py
@@ -173,7 +173,6 @@ class TestPlistlib(unittest.TestCase):
pl = self._create()
data = plistlib.dumps(pl)
pl2 = plistlib.loads(data)
- self.assertNotIsInstance(pl, plistlib._InternalDict)
self.assertEqual(dict(pl), dict(pl2))
data2 = plistlib.dumps(pl2)
self.assertEqual(data, data2)
@@ -454,14 +453,14 @@ class TestPlistlibDeprecated(unittest.TestCase):
'data': b'buffer',
}
}
- pl_out = plistlib._InternalDict({
+ pl_out = {
'key': 42,
- 'sub': plistlib._InternalDict({
+ 'sub': {
'key': 9,
'alt': 'value',
'data': plistlib.Data(b'buffer'),
- })
- })
+ }
+ }
self.addCleanup(support.unlink, support.TESTFN)
with self.assertWarns(DeprecationWarning):
@@ -499,10 +498,10 @@ class TestPlistlibDeprecated(unittest.TestCase):
with self.assertWarns(DeprecationWarning):
pl2 = plistlib.readPlistFromBytes(data)
- self.assertIsInstance(pl2, plistlib._InternalDict)
- self.assertEqual(pl2, plistlib._InternalDict(
+ self.assertIsInstance(pl2, dict)
+ self.assertEqual(pl2, dict(
key=42,
- sub=plistlib._InternalDict(
+ sub=dict(
key=9,
alt='value',
data=plistlib.Data(b'buffer'),