Author: Armin Rigo <ar...@tunes.org> Branch: extradoc Changeset: r5749:2c56de222716 Date: 2016-11-19 21:38 +0100 http://bitbucket.org/pypy/extradoc/changeset/2c56de222716/
Log: next cpython bug diff --git a/planning/py3.5/cpython-crashers.rst b/planning/py3.5/cpython-crashers.rst --- a/planning/py3.5/cpython-crashers.rst +++ b/planning/py3.5/cpython-crashers.rst @@ -121,3 +121,26 @@ TypeError). That's a bit confusing and, as far as I can tell, always pointless. Also, related: d.keys()==d.keys() but d.values()!=d.values(). + +* this program fails the check for no sys.exc_info(), even though at + the point this assert runs (called from the <== line) we are not in + any except/finally block. This is a generalization of + test_exceptions:test_generator_doesnt_retain_old_exc:: + + import sys + + def g(): + try: + raise ValueError + except ValueError: + yield 1 + assert sys.exc_info() == (None, None, None) + yield 2 + + gen = g() + + try: + raise IndexError + except IndexError: + assert next(gen) is 1 + assert next(gen) is 2 # <== _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit