mirror of https://github.com/python/cpython.git
Cleaned up test (removing bogus argument list).
This commit is contained in:
parent
e03e5b1f91
commit
babc83a27a
|
@ -564,8 +564,8 @@ class dictlike(dict): pass
|
|||
raise TestFailed, 'dictsubclass.fromkeys created wrong type'
|
||||
from UserDict import UserDict
|
||||
class mydict(dict):
|
||||
def __new__(cls, *args, **kwargs):
|
||||
return UserDict(*args, **kwargs)
|
||||
def __new__(cls):
|
||||
return UserDict()
|
||||
ud = mydict.fromkeys('ab')
|
||||
if ud != {'a':None, 'b':None} or not isinstance(ud,UserDict):
|
||||
raise TestFailed, 'fromkeys did not instantiate using __new__'
|
||||
|
|
Loading…
Reference in New Issue