Message148868
| 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:23 | mike.c | set | recipients:
+ mike.c |
| 2011年12月05日 11:55:23 | mike.c | set | messageid: <1323086123.24.0.303040379749.issue13531@psf.upfronthosting.co.za> |
| 2011年12月05日 11:55:22 | mike.c | link | issue13531 messages |
| 2011年12月05日 11:55:22 | mike.c | create |
|