summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_weakref.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-02-12 20:03:09 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-02-12 20:03:09 (GMT)
commit53dbe39b46ef42aeef12c6f46f8575a794e20440 (patch)
tree99f15bb4ba51d6e88ad50f462af0ed0235b1d6d5 /Lib/test/test_weakref.py
parent4513ef8b7a4a684deea0dda23a760f4596a1097c (diff)
downloadcpython-53dbe39b46ef42aeef12c6f46f8575a794e20440.zip
cpython-53dbe39b46ef42aeef12c6f46f8575a794e20440.tar.gz
cpython-53dbe39b46ef42aeef12c6f46f8575a794e20440.tar.bz2
Move UserList to collections.
Diffstat (limited to 'Lib/test/test_weakref.py')
-rw-r--r--Lib/test/test_weakref.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_weakref.py b/Lib/test/test_weakref.py
index 922b293..7de7b77 100644
--- a/Lib/test/test_weakref.py
+++ b/Lib/test/test_weakref.py
@@ -1,7 +1,7 @@
import gc
import sys
import unittest
-import UserList
+import collections
import weakref
from test import test_support
@@ -157,7 +157,7 @@ class ReferencesTestCase(TestBase):
o = C()
self.check_proxy(o, weakref.proxy(o))
- L = UserList.UserList()
+ L = collections.UserList()
p = weakref.proxy(L)
self.failIf(p, "proxy for empty UserList should be false")
p.append(12)
@@ -171,11 +171,11 @@ class ReferencesTestCase(TestBase):
p[1] = 5
self.assertEqual(L[1], 5)
self.assertEqual(p[1], 5)
- L2 = UserList.UserList(L)
+ L2 = collections.UserList(L)
p2 = weakref.proxy(L2)
self.assertEqual(p, p2)
## self.assertEqual(repr(L2), repr(p2))
- L3 = UserList.UserList(range(10))
+ L3 = collections.UserList(range(10))
p3 = weakref.proxy(L3)
self.assertEqual(L3[:], p3[:])
self.assertEqual(L3[5:], p3[5:])