tools/gen-cpydiff.py: Set the Python import path to find test modules.

This commit is contained in:
Damien George 2017-02-22 15:50:58 +11:00
parent 047af9b10b
commit 1034d9acc8
1 changed files with 3 additions and 2 deletions

View File

@ -203,8 +203,9 @@ def gen_rst(results):
def main():
""" Main function """
# clear search path to make sure tests use only builtin modules
os.environ['MICROPYPATH'] = ''
# set search path so that test scripts find the test modules (and no other ones)
os.environ['PYTHONPATH'] = TESTPATH
os.environ['MICROPYPATH'] = TESTPATH
files = readfiles()
results = run_tests(files)