diff options
-rw-r--r-- | tools/gen-cpydiff.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gen-cpydiff.py b/tools/gen-cpydiff.py index 6f83bb6e86..93c8e37198 100644 --- a/tools/gen-cpydiff.py +++ b/tools/gen-cpydiff.py @@ -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) |