mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Rename class attribute containing the class to be tested, so the name is the
same as for the string and sequence tests.
This commit is contained in:
parent
b4541c2653
commit
118f931d07
5 changed files with 16 additions and 16 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue