aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2018-04-10 10:07:18 +0300
committerMatti Picus <matti.picus@gmail.com>2018-04-10 10:07:18 +0300
commita48d487c05670f3dfd4c65a28de710e50bd1895d (patch)
tree5cc5c0d63a7cf9bcd11254436cac13c9903c416d /lib-python
parentTest and fix for issue #2788. Also implements "del obj.getsetprop". (diff)
downloadpypy-a48d487c05670f3dfd4c65a28de710e50bd1895d.tar.gz
pypy-a48d487c05670f3dfd4c65a28de710e50bd1895d.tar.bz2
pypy-a48d487c05670f3dfd4c65a28de710e50bd1895d.zip
ignore incompatible exception message in CPython doctest
Diffstat (limited to 'lib-python')
-rw-r--r--lib-python/2.7/test/test_generators.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib-python/2.7/test/test_generators.py b/lib-python/2.7/test/test_generators.py
index cc64a7bc2c..7e30a224a0 100644
--- a/lib-python/2.7/test/test_generators.py
+++ b/lib-python/2.7/test/test_generators.py
@@ -398,7 +398,10 @@ And more, added later.
0
>>> type(i.gi_frame)
<type 'frame'>
->>> i.gi_running = 42
+
+PyPy prints "readonly attribute 'gi_running'" so ignore the exception detail
+
+>>> i.gi_running = 42 # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
TypeError: readonly attribute