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

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

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