windows: Correctly interpret skipped tests, enable uhashlib and ubinascii

pull/1017/head
stijn 2014-12-18 16:53:46 +01:00 zatwierdzone przez Paul Sokolovsky
rodzic 6d3ae569cf
commit f5efefd5a0
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -73,7 +73,6 @@ 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('unix\\ffi_float.py')
# Some tests are known to fail with native emitter
# Remove them from the below when they work
@ -122,7 +121,7 @@ def run_tests(pyb, tests, args):
# run Micro Python
output_mupy = run_micropython(pyb, args, test_file)
if output_mupy == b'SKIP\n':
if output_mupy == b'SKIP\n' or output_mupy == b'SKIP\r\n':
print("skip ", test_file)
skipped_tests.append(test_name)
continue

Wyświetl plik

@ -64,6 +64,8 @@
#define MICROPY_PY_UJSON (1)
#define MICROPY_PY_URE (1)
#define MICROPY_PY_UHEAPQ (1)
#define MICROPY_PY_UHASHLIB (1)
#define MICROPY_PY_UBINASCII (1)
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_DETAILED)
#ifdef _MSC_VER