tools/gen-cpydiff.py: Set the Python import path to find test modules.
This commit is contained in:
parent
047af9b10b
commit
1034d9acc8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue