Skip to content

Commit

Permalink
make doubly sure the module is recompiled
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Oct 29, 2024
1 parent 84637a9 commit 17c24fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/cffi0/test_verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -2590,9 +2590,10 @@ def test_passing_large_list():

def test_no_regen():
from cffi.verifier import Verifier, _caller_dir_pycache
TF = str(cffi.verifier._FORCE_GENERIC_ENGINE)
import os
ffi = FFI()
modulename = "_cffi_test_no_regen"
modulename = "_cffi_test_no_regen" + TF
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 17c24fc

Please sign in to comment.