Author: Armin Rigo <ar...@tunes.org> Branch: py3.5 Changeset: r94794:bd8889a5d67f Date: 2018-07-01 22:40 +0200 http://bitbucket.org/pypy/pypy/changeset/bd8889a5d67f/
Log: hg merge default diff --git a/pypy/interpreter/test/test_raise.py b/pypy/interpreter/test/test_raise.py --- a/pypy/interpreter/test/test_raise.py +++ b/pypy/interpreter/test/test_raise.py @@ -309,6 +309,17 @@ return object() raises(TypeError, "raise MyException") + def test_with_exit_True(self): + class X: + def __enter__(self): + pass + def __exit__(self, *args): + return True + def g(): + with X(): + return 42 + assert False, "unreachable" + assert g() == 42 def test_pop_exception_value(self): # assert that this code don't crash _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit