diff options
author | Armin Rigo <arigo@tunes.org> | 2020-07-19 13:39:13 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2020-07-19 13:39:13 +0200 |
commit | 55b802b60822fad44a98733359815f98a3e79ecd (patch) | |
tree | 49b97f83966ac17cf5d989443fd39a6673746411 | |
parent | 72606f799f833cc668cf66c1c2f8c22877292187 (diff) | |
download | cffi-55b802b60822fad44a98733359815f98a3e79ecd.tar.gz |
Keep sys.path, otherwise it's testing another version of _cffi_backend.so
-rw-r--r-- | testing/cffi1/test_function_args.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/cffi1/test_function_args.py b/testing/cffi1/test_function_args.py index 6fe88b7..28259f6 100644 --- a/testing/cffi1/test_function_args.py +++ b/testing/cffi1/test_function_args.py @@ -92,6 +92,7 @@ else: from testing.udir import udir import subprocess f = open(str(udir.join('run1.py')), 'w') + f.write('import sys; sys.path = %r\n' % (sys.path,)) f.write('from _CFFI_test_function_args_%d import ffi, lib\n' % TEST_RUN_COUNTER) for i in range(len(args)): |