Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
1034d9ac
Commit
1034d9ac
authored
Feb 22, 2017
by
Damien George
Browse files
tools/gen-cpydiff.py: Set the Python import path to find test modules.
parent
047af9b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/gen-cpydiff.py
View file @
1034d9ac
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment