[issue25429] Can segfault Python with itertools.chain.from_iterable

2015-10-16 Thread Evan Hubinger
New submission from Evan Hubinger: The code import itertools it = itertools.chain.from_iterable((f() for f in [lambda: it])) list(it) definitely segfaults on Python 2.6, 2.7, 3.3, and 3.4, and probably segfaults on other versions as well. The code is clearly incorrect in that the lambda

[issue24649] python -mtrace --help is wrong

2015-08-04 Thread Evan Hubinger
Evan Hubinger added the comment: Added a patch that clears up the incorrect help. It now accurately reflects the only constraints that the code actually puts on the arguments: if listfuncs and (count or trace): _err_exit("cannot specify both --listfuncs and (--trace or --

[issue22680] Blacklist FunctionTestCase from test discovery

2015-07-27 Thread Evan Hubinger
Evan Hubinger added the comment: I wrote a patch to blacklist FunctionTestCase in TestLoader, and a test to make sure FunctionTestCase doesn't show up in the TestSuite after loading a module that includes it. The test runs successfully. This is my first patch, so feedback would be apprec