Skip to content

Commit 1034d9a

Browse files
committed
tools/gen-cpydiff.py: Set the Python import path to find test modules.
1 parent 047af9b commit 1034d9a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tools/gen-cpydiff.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,9 @@ def gen_rst(results):
203203
def main():
204204
""" Main function """
205205

206-
# clear search path to make sure tests use only builtin modules
207-
os.environ['MICROPYPATH'] = ''
206+
# set search path so that test scripts find the test modules (and no other ones)
207+
os.environ['PYTHONPATH'] = TESTPATH
208+
os.environ['MICROPYPATH'] = TESTPATH
208209

209210
files = readfiles()
210211
results = run_tests(files)

0 commit comments

Comments
 (0)