#13531: add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
This commit is contained in:
parent
2f0ad742b5
commit
eb5879414d
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue