mirror of https://github.com/python/cpython
#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:
|
finally:
|
||||||
os.remove(tfn)
|
os.remove(tfn)
|
||||||
|
|
||||||
|
def test_callable_arg(self):
|
||||||
|
self.assertRaises(TypeError, defaultdict, {})
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
test_support.run_unittest(TestDefaultDict)
|
test_support.run_unittest(TestDefaultDict)
|
||||||
|
|
Loading…
Reference in New Issue