Skip to content

Commit

Permalink
Merge pull request numba#8826 from gmarkall/issue-8824
Browse files Browse the repository at this point in the history
CUDA CFFI test: conditionally require cffi module
  • Loading branch information
gmarkall authored Mar 17, 2023
2 parents f54d553 + 93e48c5 commit 07f824e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion numba/cuda/tests/cudapy/test_cffi.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import numpy as np
import cffi

try:
import cffi
_have_cffi = True
except ImportError:
_have_cffi = False

from numba import cuda, types
from numba.cuda.testing import (skip_on_cudasim, test_data_dir, unittest,
CUDATestCase)


@unittest.skipUnless(_have_cffi, 'Needs CFFI')
@skip_on_cudasim('Simulator does not support linking')
class TestCFFI(CUDATestCase):
def test_from_buffer(self):
Expand Down

0 comments on commit 07f824e

Please sign in to comment.