#13531: add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
This commit is contained in:
parent
4bf21e28df
commit
4988ca5c55
|
@ -171,6 +171,8 @@ class TestDefaultDict(unittest.TestCase):
|
|||
finally:
|
||||
os.remove(tfn)
|
||||
|
||||
def test_callable_arg(self):
|
||||
self.assertRaises(TypeError, defaultdict, {})
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(TestDefaultDict)
|
||||
|
|
Loading…
Reference in New Issue