[issue13531] add test for defaultdict with non-callable first argument

2011-12-07 Thread Ezio Melotti
Ezio Melotti added the comment: Committed, thanks for the report and the patch! For the record, this is related to https://bugs.pypy.org/issue953 -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tr

[issue13531] add test for defaultdict with non-callable first argument

2011-12-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset a8deeb549e1a by Ezio Melotti in branch '2.7': #13531: add a test for defaultdict with a non-callable arg. Patch by Mike Cheng. http://hg.python.org/cpython/rev/a8deeb549e1a New changeset 17ceebc61b65 by Ezio Melotti in branch '3.2': #13531: add a

[issue13531] add test for defaultdict with non-callable first argument

2011-12-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti stage: test needed -> commit review ___ Python tracker ___ ___ Python-bugs-lis

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
mike c added the comment: patch v2. Now with assertRaises()! -- Added file: http://bugs.python.org/file23856/defaultdict_callable_test_v2.patch ___ Python tracker ___ __

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
mike c added the comment: Patch to add a defaultdict test which checks that if the first argument is not callable, then a TypeError is thrown. -- keywords: +patch Added file: http://bugs.python.org/file23855/defaultdict_callable_test.patch ___ Pytho

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
mike c added the comment: Cloning repo. Reading the devguide. Patch forthcoming. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread Ezio Melotti
Ezio Melotti added the comment: Sure, do you want to propose a patch? (You can see the devguide for more information.) -- keywords: +easy nosy: +ezio.melotti stage: -> test needed versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue13531] add test for defaultdict with non-callable first argument

2011-12-05 Thread mike c
New submission from mike c : 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.