summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_weakref.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-06-02 18:42:25 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2004-06-02 18:42:25 (GMT)
commit118f931d07de3987958eee51e97b3323c190dbfd (patch)
treea839d4dd7f23706722fc0026ec2ea1b4bdaf8314 /Lib/test/test_weakref.py
parentb4541c2653ff3307325371e0c07266b4f988ce65 (diff)
downloadcpython-118f931d07de3987958eee51e97b3323c190dbfd.zip
cpython-118f931d07de3987958eee51e97b3323c190dbfd.tar.gz
cpython-118f931d07de3987958eee51e97b3323c190dbfd.tar.bz2
Rename class attribute containing the class to be tested, so the name is the
same as for the string and sequence tests.
Diffstat (limited to 'Lib/test/test_weakref.py')
-rw-r--r--Lib/test/test_weakref.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_weakref.py b/Lib/test/test_weakref.py
index cf5d0a4..0a9e97d 100644
--- a/Lib/test/test_weakref.py
+++ b/Lib/test/test_weakref.py
@@ -917,14 +917,14 @@ from test import mapping_tests
class WeakValueDictionaryTestCase(mapping_tests.BasicTestMappingProtocol):
"""Check that WeakValueDictionary conforms to the mapping protocol"""
__ref = {"key1":Object(1), "key2":Object(2), "key3":Object(3)}
- _tested_class = weakref.WeakValueDictionary
+ type2test = weakref.WeakValueDictionary
def _reference(self):
return self.__ref.copy()
class WeakKeyDictionaryTestCase(mapping_tests.BasicTestMappingProtocol):
"""Check that WeakKeyDictionary conforms to the mapping protocol"""
__ref = {Object("key1"):1, Object("key2"):2, Object("key3"):3}
- _tested_class = weakref.WeakKeyDictionary
+ type2test = weakref.WeakKeyDictionary
def _reference(self):
return self.__ref.copy()