summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-07-17 10:24:27 +0200
committerArmin Rigo <arigo@tunes.org>2020-07-17 10:24:27 +0200
commitd4305759c2355db4c450d58ca2c236d879fa4790 (patch)
tree8ff799a7f8875f68c2438e501175b0c855feae03 /c
parent536ff3c1f67090c0cedd19b7a3e9a731634b1af3 (diff)
downloadcffi-d4305759c2355db4c450d58ca2c236d879fa4790.tar.gz
hack around until I make recent pytest versions happy
Diffstat (limited to 'c')
-rw-r--r--c/test_c.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/c/test_c.py b/c/test_c.py
index fa20517..383bca2 100644
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -4,12 +4,17 @@ import pytest
def _setup_path():
import os, sys
if '__pypy__' in sys.builtin_module_names:
- py.test.skip("_cffi_backend.c: not tested on top of pypy, "
- "use pypy/module/_cffi_backend/test/ instead.")
+ global pytestmark
+ pytestmark = pytest.mark.skip(
+ "_cffi_backend.c: not tested on top of pypy, "
+ "use pypy/module/_cffi_backend/test/ instead.")
+ return False
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
-_setup_path()
+ return True
+if _setup_path():
+ from _cffi_backend import _testfunc, _get_types, _get_common_types
from _cffi_backend import *
-from _cffi_backend import _testfunc, _get_types, _get_common_types, __version__
+from _cffi_backend import __version__
# ____________________________________________________________