From 56e960a7a8db6dfa52922329405351f98679b4ac Mon Sep 17 00:00:00 2001 From: mattip Date: Tue, 29 Oct 2024 10:28:15 +0200 Subject: [PATCH] fix --- testing/cffi0/test_verify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/cffi0/test_verify.py b/testing/cffi0/test_verify.py index abf90689..0e85fcaa 100644 --- a/testing/cffi0/test_verify.py +++ b/testing/cffi0/test_verify.py @@ -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 ', libraries=lib_m, modulename=modulename) assert lib.cos(1.23) == math.cos(1.23)