[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 
references the variable being defined, but it seems like it should raise an 
error instead of segfaulting.

--
messages: 253112
nosy: Evan Hubinger
priority: normal
severity: normal
status: open
title: Can segfault Python with itertools.chain.from_iterable
type: crash
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25429>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 appreciated if I did anything wrong.

--
keywords: +patch
nosy: +Evan Hubinger
Added file: http://bugs.python.org/file40040/issue22680.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com