summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2015-08-06 12:31:37 +0200
committerDamien George <damien.p.george@gmail.com>2015-08-08 12:35:27 +0100
commit7ede3ec4b1ab4b77aac0dea0322a93b53f5df18a (patch)
tree523a066d22176a0ef73806d99708c073813a44a0 /tests
parent872f9af6aed49fa088d89152b983506285e1d34b (diff)
downloadmicropython-7ede3ec4b1ab4b77aac0dea0322a93b53f5df18a.tar.gz
micropython-7ede3ec4b1ab4b77aac0dea0322a93b53f5df18a.zip
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
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-tests3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-tests b/tests/run-tests
index 9379766814..e9587e3de3 100755
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -196,7 +196,7 @@ def run_tests(pyb, tests, args):
# Some tests use unsupported features on Windows
if os.name == 'nt':
- skip_tests.add('import\\import_file.py') #works but CPython prints forward slashes
+ skip_tests.add('import/import_file.py') # works but CPython prints forward slashes
# Some tests are known to fail with native emitter
# Remove them from the below when they work
@@ -221,6 +221,7 @@ def run_tests(pyb, tests, args):
skip_tests.add('misc/sys_exc_info.py') # sys.exc_info() is not supported for native
for test_file in tests:
+ test_file = test_file.replace('\\', '/')
test_basename = os.path.basename(test_file)
test_name = os.path.splitext(test_basename)[0]
is_native = test_name.startswith("native_") or test_name.startswith("viper_")