summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-07-19 13:39:13 +0200
committerArmin Rigo <arigo@tunes.org>2020-07-19 13:39:13 +0200
commit55b802b60822fad44a98733359815f98a3e79ecd (patch)
tree49b97f83966ac17cf5d989443fd39a6673746411 /testing
parent72606f799f833cc668cf66c1c2f8c22877292187 (diff)
downloadcffi-55b802b60822fad44a98733359815f98a3e79ecd.tar.gz
Keep sys.path, otherwise it's testing another version of _cffi_backend.so
Diffstat (limited to 'testing')
-rw-r--r--testing/cffi1/test_function_args.py1
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)):