Skip to content

Commit 945ddbd

Browse files
committed
Revert "fix(test): guard pyximport import for non-Cython tox envs"
This reverts commit 6cde4f2.
1 parent 9715e4e commit 945ddbd

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

tests/unit/wiring/conftest.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
"""Enable on-import compilation of the .pyx wiring fixture via pyximport.
1+
"""Enable on-import compilation of the .pyx wiring fixture via pyximport."""
22

3-
Cython is not installed in every tox env (e.g. pydantic-{v1,v2}), so the
4-
import is guarded — test_cython.py skips at importorskip in that case.
5-
"""
3+
import pyximport
64

7-
try:
8-
import pyximport
9-
10-
pyximport.install(language_level=3)
11-
except ImportError:
12-
pass
5+
pyximport.install(language_level=3)

0 commit comments

Comments
 (0)