Skip to content

Commit 58a13f3

Browse files
mgornyionelmc
authored andcommitted
Support SETUPPY_FORCE_PURE in tests
Support testing without the C extension if SETUPPY_FORCE_PURE is set. This makes the test suite behavior consistent with setup.py behavior.
1 parent 14330a1 commit 58a13f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import sys
23

34
import pytest
@@ -19,7 +20,7 @@ class FakeModule:
1920
try:
2021
from lazy_object_proxy.cext import Proxy
2122
except ImportError:
22-
if PYPY:
23+
if PYPY or os.environ.get('SETUPPY_FORCE_PURE'):
2324
pytest.skip(reason='C Extension not available.')
2425
else:
2526
raise

0 commit comments

Comments
 (0)