mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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:
|
||||
os.remove(tfn)
|
||||
|
||||
def test_callable_arg(self):
|
||||
self.assertRaises(TypeError, defaultdict, {})
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(TestDefaultDict)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue