Skip to content

Commit db869f1

Browse files
committed
chore: move import to method to avoid simulator module interception
1 parent a209273 commit db869f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numba_cuda/numba/cuda/tests/cudapy/test_multiprocessing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from numba import cuda
1212
from numba.cuda.testing import skip_on_cudasim, CUDATestCase
13-
from numba.cuda.cudadrv.error import CudaDriverError
1413
import unittest
1514

1615

@@ -22,6 +21,8 @@ def test_fork(self):
2221
"""
2322
Test fork detection.
2423
"""
24+
from numba.cuda.cudadrv.error import CudaDriverError
25+
2526
cuda.current_context() # force cuda initialize
2627
with concurrent.futures.ProcessPoolExecutor(
2728
mp_context=mp.get_context("fork")

0 commit comments

Comments
 (0)