Skip to content

Commit c298610

Browse files
committed
Also allow for ModuleNotFoundError
1 parent 5a51c67 commit c298610

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cuda_core/tests/cython/test_cython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _import_cython_test_modules():
6767
for module_name in CYTHON_TEST_MODULES:
6868
try:
6969
imported_modules[module_name] = importlib.import_module(module_name)
70-
except ImportError:
70+
except ImportError, ModuleNotFoundError:
7171
if not build_attempted:
7272
build_cython_test_modules()
7373
importlib.invalidate_caches()

0 commit comments

Comments
 (0)