summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-05-24 12:05:24 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-05-24 12:05:24 +0200
commit445f055ca9748e0b716aaab900a5244e980aab67 (patch)
treef7ff351efeda54f23f3aff58a7542667ba0b8ecc
parent77092108bd5f32545f067f0fd8c4ee1739051b1e (diff)
downloadcython-445f055ca9748e0b716aaab900a5244e980aab67.tar.gz
Exclude a test that crashes in PyPy.
-rw-r--r--tests/run/test_coroutines_pep492.pyx7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run/test_coroutines_pep492.pyx b/tests/run/test_coroutines_pep492.pyx
index a12307174..2841d97af 100644
--- a/tests/run/test_coroutines_pep492.pyx
+++ b/tests/run/test_coroutines_pep492.pyx
@@ -70,6 +70,12 @@ except ImportError:
return (<PyObject*>obj).ob_refcnt
+def no_pypy(f):
+ import platform
+ if platform.python_implementation() == 'PyPy':
+ return unittest.skip("excluded in PyPy")
+
+
# compiled exec()
def exec(code_string, l, g):
from Cython.Shadow import inline
@@ -2406,6 +2412,7 @@ class CoroutineTest(unittest.TestCase):
finally:
aw.close()
+ @no_pypy
def test_fatal_coro_warning(self):
# Issue 27811
async def func(): pass