summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-12-07 09:04:29 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-12-07 09:04:29 (GMT)
commitbabc83a27a6e692bbdaabd9aba7c65879d631dbc (patch)
tree5bc7d36e4c1f4cbd698ba5ab2a900e61c4e3baf6
parente03e5b1f91452603a4cbd6df99c7c7d4a6bcc2cc (diff)
downloadcpython-babc83a27a6e692bbdaabd9aba7c65879d631dbc.zip
cpython-babc83a27a6e692bbdaabd9aba7c65879d631dbc.tar.gz
cpython-babc83a27a6e692bbdaabd9aba7c65879d631dbc.tar.bz2
Cleaned up test (removing bogus argument list).
-rw-r--r--Lib/test/test_types.py4
1 files 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__'