diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-05-24 12:05:24 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-05-24 12:05:24 +0200 |
commit | 445f055ca9748e0b716aaab900a5244e980aab67 (patch) | |
tree | f7ff351efeda54f23f3aff58a7542667ba0b8ecc | |
parent | 77092108bd5f32545f067f0fd8c4ee1739051b1e (diff) | |
download | cython-445f055ca9748e0b716aaab900a5244e980aab67.tar.gz |
Exclude a test that crashes in PyPy.
-rw-r--r-- | tests/run/test_coroutines_pep492.pyx | 7 |
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 |