diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index 8b28686fd6c..1cac4382501 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -340,7 +340,8 @@ class X: support.gc_collect() self.assertIsNone(ref()) - @unittest.skip("TODO: RUSTPYTHON, thread 'main' panicked at 'not implemented: async for comprehensions'") + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_snippets(self): for input, output, kind in ((exec_tests, exec_results, "exec"), (single_tests, single_results, "single"), @@ -353,7 +354,8 @@ def test_snippets(self): with self.subTest(action="compiling", input=i, kind=kind): compile(ast_tree, "?", kind) - @unittest.skip("TODO: RUSTPYTHON, thread 'main' panicked at 'not implemented: async for comprehensions'") + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_ast_validation(self): # compile() is the only function that calls PyAST_Validate snippets_to_validate = exec_tests + single_tests + eval_tests @@ -361,7 +363,8 @@ def test_ast_validation(self): tree = ast.parse(snippet) compile(tree, '', 'exec') - @unittest.skip("TODO: RUSTPYTHON, OverflowError: Python int too large to convert to Rust u32") + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_invalid_position_information(self): invalid_linenos = [ (10, 1), (-10, -11), (10, -11), (-5, -2), (-5, 1) diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index da53f085a56..a7e4f6dd27f 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -259,7 +259,8 @@ def test_undecodable_code(self): if not stdout.startswith(pattern): raise AssertionError("%a doesn't start with %a" % (stdout, pattern)) - @unittest.skip("TODO: RUSTPYTHON, thread 'main' panicked at 'unexpected invalid UTF-8 code point'") + # TODO: RUSTPYTHON + @unittest.expectedFailure @unittest.skipIf(sys.platform == 'win32', 'Windows has a native unicode API') def test_invalid_utf8_arg(self): diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py index f65eb55ca5b..d94a2bdadd8 100644 --- a/Lib/test/test_float.py +++ b/Lib/test/test_float.py @@ -153,8 +153,6 @@ def check(s): # non-UTF-8 byte string check(b'123\xa0') - # TODO: RUSTPYTHON - @unittest.skip("RustPython panics on this") @support.run_with_locale('LC_NUMERIC', 'fr_FR', 'de_DE', '') def test_float_with_comma(self): # set locale to something that doesn't use '.' for the decimal point diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 9cc22b959d7..e91d454b723 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -5098,13 +5098,15 @@ def alarm2(sig, frame): if e.errno != errno.EBADF: raise - @unittest.skip("TODO: RUSTPYTHON, thread 'main' panicked at 'already borrowed: BorrowMutError'") + # TODO: RUSTPYTHON + @unittest.expectedFailure @requires_alarm @support.requires_resource('walltime') def test_interrupted_write_retry_buffered(self): self.check_interrupted_write_retry(b"x", mode="wb") - @unittest.skip("TODO: RUSTPYTHON, thread 'main' panicked at 'already borrowed: BorrowMutError'") + # TODO: RUSTPYTHON + @unittest.expectedFailure @requires_alarm @support.requires_resource('walltime') def test_interrupted_write_retry_text(self): diff --git a/Lib/test/test_strftime.py b/Lib/test/test_strftime.py index 08ccebb9edb..f5024d8e6da 100644 --- a/Lib/test/test_strftime.py +++ b/Lib/test/test_strftime.py @@ -63,7 +63,6 @@ def setUp(self): setlocale(LC_TIME, 'C') self.addCleanup(setlocale, LC_TIME, saved_locale) - @unittest.skip("TODO: RUSTPYTHON, thread 'main' panicked at 'a Display implementation returned an error unexpectedly: Error'") def test_strftime(self): now = time.time() self._update_variables(now) diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 3af18efae22..3886aae9341 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -236,7 +236,6 @@ def _bounds_checking(self, func): def test_strftime_bounding_check(self): self._bounds_checking(lambda tup: time.strftime('', tup)) - @unittest.skip("TODO: RUSTPYTHON, thread 'main' panicked at 'a Display implementation returned an error unexpectedly: Error'") def test_strftime_format_check(self): # Test that strftime does not crash on invalid format strings # that may trigger a buffer overread. When not triggered, @@ -459,7 +458,6 @@ def test_mktime(self): # Issue #13309: passing extreme values to mktime() or localtime() # borks the glibc's internal timezone data. - @unittest.skip("TODO: RUSTPYTHON, thread 'main' panicked at 'a Display implementation returned an error unexpectedly: Error'") @unittest.skipUnless(platform.libc_ver()[0] != 'glibc', "disabled because of a bug in glibc. Issue #13309") def test_mktime_error(self):