Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Oct 29, 2024
1 parent 17c24fc commit 56e960a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/cffi0/test_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -2589,11 +2589,11 @@ def test_passing_large_list():
# assert did not segfault

def test_no_regen():
from cffi.verifier import Verifier, _caller_dir_pycache
TF = str(cffi.verifier._FORCE_GENERIC_ENGINE)
from cffi.verifier import Verifier, _caller_dir_pycache, _FORCE_GENERIC_ENGINE
import os
ffi = FFI()
modulename = "_cffi_test_no_regen" + TF
# make sure the module name is unique
modulename = "_cffi_test_no_regen" + str(_FORCE_GENERIC_ENGINE)
ffi.cdef("double cos(double x);")
lib = ffi.verify('#include <math.h>', libraries=lib_m, modulename=modulename)
assert lib.cos(1.23) == math.cos(1.23)
Expand Down

0 comments on commit 56e960a

Please sign in to comment.