commit | 4988ca5c5559383122b345ba32657a1ab66f7320 | [log] [tgz] |
---|---|---|
author | Ezio Melotti <ezio.melotti@gmail.com> | Thu Dec 08 00:00:49 2011 +0200 |
committer | Ezio Melotti <ezio.melotti@gmail.com> | Thu Dec 08 00:00:49 2011 +0200 |
tree | b305a377a1a11295ba811d25b9d0a191ed33efa5 | |
parent | 4bf21e28dfb42c2da3d440c2c0d9898cb3196fe1 [diff] [blame] |
#13531: add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
diff --git a/Lib/test/test_defaultdict.py b/Lib/test/test_defaultdict.py index a524ad7..3d760b9 100644 --- a/Lib/test/test_defaultdict.py +++ b/Lib/test/test_defaultdict.py
@@ -171,6 +171,8 @@ finally: os.remove(tfn) + def test_callable_arg(self): + self.assertRaises(TypeError, defaultdict, {}) def test_main(): test_support.run_unittest(TestDefaultDict)