You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
tests: Make default MICROPYPATH include extmod to find uasyncio.
This commit is contained in:
@@ -382,6 +382,9 @@ def main():
|
||||
cmd_parser.add_argument("files", nargs="+", help="input test files")
|
||||
cmd_args = cmd_parser.parse_args()
|
||||
|
||||
# clear search path to make sure tests use only builtin modules and those in extmod
|
||||
os.environ['MICROPYPATH'] = os.pathsep + '../extmod'
|
||||
|
||||
test_files = prepare_test_file_list(cmd_args.files)
|
||||
max_instances = max(t[1] for t in test_files)
|
||||
|
||||
|
||||
+2
-2
@@ -628,8 +628,8 @@ the last matching regex is used:
|
||||
tests = args.files
|
||||
|
||||
if not args.keep_path:
|
||||
# clear search path to make sure tests use only builtin modules
|
||||
os.environ['MICROPYPATH'] = ''
|
||||
# clear search path to make sure tests use only builtin modules and those in extmod
|
||||
os.environ['MICROPYPATH'] = os.pathsep + '../extmod'
|
||||
|
||||
# Even if we run completely different tests in a different directory,
|
||||
# we need to access feature_check's from the same directory as the
|
||||
|
||||
Reference in New Issue
Block a user