Author: Armin Rigo <[email protected]>
Branch:
Changeset: r91888:0b72fd1a7641
Date: 2017-07-16 13:41 +0200
http://bitbucket.org/pypy/pypy/changeset/0b72fd1a7641/
Log: Add a test that is passing on pypy2.7, cpython2.7, cpython3.x, but
not pypy3.5
diff --git a/pypy/interpreter/test/test_generator.py
b/pypy/interpreter/test/test_generator.py
--- a/pypy/interpreter/test/test_generator.py
+++ b/pypy/interpreter/test/test_generator.py
@@ -297,6 +297,13 @@
except TypeError:
pass
+ def test_multiple_invalid_sends(self):
+ def mygen():
+ yield 42
+ g = mygen()
+ raises(TypeError, g.send, 2)
+ raises(TypeError, g.send, 2)
+
def test_should_not_inline(space):
from pypy.interpreter.generator import should_not_inline
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit