Commit 1034d9ac authored by Damien George's avatar Damien George
Browse files

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

parent 047af9b1
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment