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

pull/2902/head
Damien George 2017-02-22 15:50:58 +11:00
rodzic 047af9b10b
commit 1034d9acc8
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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)