mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
#13531: add a test for defaultdict with a non-callable arg. Patch by Mike Cheng.
This commit is contained in:
parent
4bf21e28df
commit
4988ca5c55
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue