From babc83a27a6e692bbdaabd9aba7c65879d631dbc Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 7 Dec 2002 09:04:29 +0000 Subject: Cleaned up test (removing bogus argument list). --- Lib/test/test_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index 1b6f3ac..449d0dd 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__' -- cgit v0.12