Skip to content

Commit f5efefd

Browse files
stinospfalcon
authored andcommitted
windows: Correctly interpret skipped tests, enable uhashlib and ubinascii
1 parent 6d3ae56 commit f5efefd

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

tests/run-tests

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def run_tests(pyb, tests, args):
7373
# Some tests use unsupported features on Windows
7474
if os.name == 'nt':
7575
skip_tests.add('import\\import_file.py') #works but CPython prints forward slashes
76-
skip_tests.add('unix\\ffi_float.py')
7776

7877
# Some tests are known to fail with native emitter
7978
# Remove them from the below when they work
@@ -122,7 +121,7 @@ def run_tests(pyb, tests, args):
122121
# run Micro Python
123122
output_mupy = run_micropython(pyb, args, test_file)
124123

125-
if output_mupy == b'SKIP\n':
124+
if output_mupy == b'SKIP\n' or output_mupy == b'SKIP\r\n':
126125
print("skip ", test_file)
127126
skipped_tests.append(test_name)
128127
continue

windows/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
#define MICROPY_PY_UJSON (1)
6565
#define MICROPY_PY_URE (1)
6666
#define MICROPY_PY_UHEAPQ (1)
67+
#define MICROPY_PY_UHASHLIB (1)
68+
#define MICROPY_PY_UBINASCII (1)
6769

6870
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_DETAILED)
6971
#ifdef _MSC_VER

0 commit comments

Comments
 (0)