homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mike.c
Recipients mike.c
Date 2011年12月05日.11:55:22
SpamBayes Score 0.002426541
Marked as misclassified No
Message-id <1323086123.24.0.303040379749.issue13531@psf.upfronthosting.co.za>
In-reply-to
Content
Could a test be added to ./Lib/test/test_defaultdict.py to test for TypeError being thrown when the the first argument to collections.defaultdict is not callable? 
pypy does not behave the same way as CPython 2.7.2 as the problem is not covered in the testcases.
e.g.
def test_callable_arg:
 d1 = defaultdict({})
 self.assertRaises(TypeError) # TypeError: first argument must be callable
History
Date User Action Args
2011年12月05日 11:55:23mike.csetrecipients: + mike.c
2011年12月05日 11:55:23mike.csetmessageid: <1323086123.24.0.303040379749.issue13531@psf.upfronthosting.co.za>
2011年12月05日 11:55:22mike.clinkissue13531 messages
2011年12月05日 11:55:22mike.ccreate

AltStyle によって変換されたページ (->オリジナル) /