Skip to content

Commit

Permalink
skip when no cython properly
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomas1 committed Jan 15, 2023
1 parent fb0916a commit d8ea5f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unittests/allplatformstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,9 @@ def test_build_generated_pyx_directly(self):
# dependencies for the compilation stage as dependencies
testdir = os.path.join("test cases/cython", '2 generated sources')
env = get_fake_env(testdir, self.builddir, self.prefix)
if not detect_compiler_for(env, "cython", MachineChoice.HOST):
try:
detect_compiler_for(env, "cython", MachineChoice.HOST)
except EnvironmentException:
raise SkipTest("Cython is not installed")
self.init(testdir)
# Need to get the full target name ( can't know earlier since it includes stuff like Python version )
Expand Down

0 comments on commit d8ea5f9

Please sign in to comment.