diff --git a/testing/cffi0/test_ownlib.py b/testing/cffi0/test_ownlib.py index af52f766..d1856819 100644 --- a/testing/cffi0/test_ownlib.py +++ b/testing/cffi0/test_ownlib.py @@ -156,8 +156,7 @@ def setup_class(cls): if sys.maxsize > 2**32: arch = 'amd64' if os.path.isfile(vcvarsall): - cmd = '"%s" %s' % (vcvarsall, arch) + ' & cl.exe testownlib.c ' \ - ' /LD /Fetestownlib.dll' + cmd = f'"{vcvarsall}" {arch} & cl.exe testownlib.c /LD /Fetestownlib.dll' subprocess.check_call(cmd, cwd = str(udir), shell=True) os.rename(f"{udir}\\testownlib.dll", dll_path) cls.module = dll_path