diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-12-07 22:03:59 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-12-07 22:03:59 (GMT) |
commit | 96e76775bc82d5bac72afa67840f23dc74b85150 (patch) | |
tree | 88d84613ee38a1438476e9b2c154661a9663b5b7 | |
parent | 7c0b0cc9f90bbcd22dd971cff21ddb85a1a94f42 (diff) | |
parent | eb5879414dd76f9b1ad4cac5114387951fbbf153 (diff) | |
download | cpython-96e76775bc82d5bac72afa67840f23dc74b85150.zip cpython-96e76775bc82d5bac72afa67840f23dc74b85150.tar.gz cpython-96e76775bc82d5bac72afa67840f23dc74b85150.tar.bz2 |
#13531: merge with 3.2.
-rw-r--r-- | Lib/test/test_defaultdict.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_defaultdict.py b/Lib/test/test_defaultdict.py index da2608a..532d535 100644 --- a/Lib/test/test_defaultdict.py +++ b/Lib/test/test_defaultdict.py @@ -172,6 +172,9 @@ class TestDefaultDict(unittest.TestCase): finally: os.remove(tfn) + def test_callable_arg(self): + self.assertRaises(TypeError, defaultdict, {}) + def test_pickleing(self): d = defaultdict(int) d[1] |