From: Raymond Hettinger Date: Sat, 7 Dec 2002 09:04:29 +0000 (+0000) Subject: Cleaned up test (removing bogus argument list). X-Git-Tag: v2.3c1~3101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=babc83a27a6e692bbdaabd9aba7c65879d631dbc;p=thirdparty%2FPython%2Fcpython.git Cleaned up test (removing bogus argument list). --- diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index 1b6f3acd8f21..449d0dd14617 100644 --- a/Lib/test/test_types.py +++ b/Lib/test/test_types.py @@ -564,8 +564,8 @@ if type(dictlike().fromkeys('a')) is not dictlike: 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__'