summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dict.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-02-06 00:07:11 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-02-06 00:07:11 (GMT)
commitf80680d8cdb7503c4b34e2c5a014d7c4f6e5817d (patch)
treec02f8db2179cce9a87317c373dcb733d6f2134c0 /Lib/test/test_dict.py
parent554c8b856cbeb29f3fef0350846aef442832acac (diff)
downloadcpython-f80680d8cdb7503c4b34e2c5a014d7c4f6e5817d.zip
cpython-f80680d8cdb7503c4b34e2c5a014d7c4f6e5817d.tar.gz
cpython-f80680d8cdb7503c4b34e2c5a014d7c4f6e5817d.tar.bz2
Migrate remaining tests from UserDict.UserDict to collections.UserDict.
Diffstat (limited to 'Lib/test/test_dict.py')
-rw-r--r--Lib/test/test_dict.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py
index 6a0b3c1..1997dc5 100644
--- a/Lib/test/test_dict.py
+++ b/Lib/test/test_dict.py
@@ -1,7 +1,7 @@
import unittest
from test import test_support
-import sys, UserDict, random, string
+import sys, collections, random, string
class DictTest(unittest.TestCase):
@@ -209,10 +209,10 @@ class DictTest(unittest.TestCase):
self.assert_(type(dictlike().fromkeys('a')) is dictlike)
class mydict(dict):
def __new__(cls):
- return UserDict.UserDict()
+ return collections.UserDict()
ud = mydict.fromkeys('ab')
self.assertEqual(ud, {'a':None, 'b':None})
- self.assert_(isinstance(ud, UserDict.UserDict))
+ self.assert_(isinstance(ud, collections.UserDict))
self.assertRaises(TypeError, dict.fromkeys)
class Exc(Exception): pass