Skip to content

Commit 7ede3ec

Browse files
stinosdpgeorge
authored andcommitted
tests: Always use forward slashes for paths
This is more consistent and fixes run_micropython on windows as it uses forward slahses to compare paths
1 parent 872f9af commit 7ede3ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/run-tests

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def run_tests(pyb, tests, args):
196196

197197
# Some tests use unsupported features on Windows
198198
if os.name == 'nt':
199-
skip_tests.add('import\\import_file.py') #works but CPython prints forward slashes
199+
skip_tests.add('import/import_file.py') # works but CPython prints forward slashes
200200

201201
# Some tests are known to fail with native emitter
202202
# Remove them from the below when they work
@@ -221,6 +221,7 @@ def run_tests(pyb, tests, args):
221221
skip_tests.add('misc/sys_exc_info.py') # sys.exc_info() is not supported for native
222222

223223
for test_file in tests:
224+
test_file = test_file.replace('\\', '/')
224225
test_basename = os.path.basename(test_file)
225226
test_name = os.path.splitext(test_basename)[0]
226227
is_native = test_name.startswith("native_") or test_name.startswith("viper_")

0 commit comments

Comments
 (0)