Skip to content

Commit 1034d9a

Browse files
committed
tools/gen-cpydiff.py: Set the Python import path to find test modules.
1 parent 047af9b commit 1034d9a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/gen-cpydiff.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,9 @@ def gen_rst(results):
203203
def main():
204204
""" Main function """
205205

206-
# clear search path to make sure tests use only builtin modules
207-
os.environ['MICROPYPATH'] = ''
206+
# set search path so that test scripts find the test modules (and no other ones)
207+
os.environ['PYTHONPATH'] = TESTPATH
208+
os.environ['MICROPYPATH'] = TESTPATH
208209

209210
files = readfiles()
210211
results = run_tests(files)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy