[pypy-commit] pypy default: ignore incompatible exception message in CPython doctest

mattip pypy.commits at gmail.com
Tue Apr 10 04:09:14 EDT 2018


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r94286:4b8b957e45a4
Date: 2018-04-10 10:07 +0300
http://bitbucket.org/pypy/pypy/changeset/4b8b957e45a4/

Log:	ignore incompatible exception message in CPython doctest

diff --git a/lib-python/2.7/test/test_generators.py b/lib-python/2.7/test/test_generators.py
--- a/lib-python/2.7/test/test_generators.py
+++ b/lib-python/2.7/test/test_generators.py
@@ -398,7 +398,10 @@
 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


More information about the pypy-commit mailing list