summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index e80d5b463..a91b3e9e9 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -3,6 +3,7 @@
import os
import subprocess
import sys
+import sysconfig
import platform
import argparse
import inspect
@@ -583,10 +584,6 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
# fails with stack overflow on Debug builds
skip_tests.add("misc/sys_settrace_features.py")
- if os.getenv("MSYSTEM") is not None:
- # fails due to wrong path separator
- skip_tests.add("import/import_file.py")
-
if upy_float_precision == 0:
skip_tests.add("extmod/uctypes_le_float.py")
skip_tests.add("extmod/uctypes_native_float.py")
@@ -711,7 +708,9 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
# Some tests use unsupported features on Windows
if os.name == "nt":
- skip_tests.add("import/import_file.py") # works but CPython prints forward slashes
+ if not sysconfig.get_platform().startswith("mingw"):
+ # Works but CPython uses '\' path separator
+ skip_tests.add("import/import_file.py")
# Some tests are known to fail with native emitter
# Remove them from the below when they work