From b5322b612f132c0f24be06ea85facef444c5573b Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Tue, 17 Mar 2026 15:41:02 +0100 Subject: [PATCH 1/2] Remove some platform dependent tests --- .github/workflows/ci.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b99b8a162db..be3528e6fdd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -187,7 +187,6 @@ jobs: test_bool test_bytes test_call - test_class test_cmath test_collections test_complex @@ -205,7 +204,6 @@ jobs: test_enumerate test_exception_variations test_float - test_format test_fractions test_genericalias test_genericclass @@ -224,7 +222,6 @@ jobs: test_list test_long test_longexp - test_math test_operator test_ordered_dict test_pep646_syntax @@ -244,7 +241,6 @@ jobs: test_syntax test_tstring test_tuple - test_types test_unary test_unpack test_unpack_ex From 404e84a87b6f1270050a35230ba4d98feac4aec4 Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Tue, 17 Mar 2026 15:49:57 +0100 Subject: [PATCH 2/2] Mark failing tests --- Lib/test/test_class.py | 1 + Lib/test/test_format.py | 1 + Lib/test/test_math.py | 1 + Lib/test/test_types.py | 2 ++ 4 files changed, 5 insertions(+) diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py index 7420f289b16..5a3f0744ad2 100644 --- a/Lib/test/test_class.py +++ b/Lib/test/test_class.py @@ -614,6 +614,7 @@ def assertNotOrderable(self, a, b): with self.assertRaises(TypeError): a >= b + @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; AssertionError: 1543448294720 != 1543448295392") def testHashComparisonOfMethods(self): # Test comparison and hash of methods class A: diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index 6868c87171d..d53a3f46134 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -423,6 +423,7 @@ def test_non_ascii(self): self.assertEqual(format(1+2j, "\u2007^8"), "\u2007(1+2j)\u2007") self.assertEqual(format(0j, "\u2007^4"), "\u20070j\u2007") + @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; AssertionError: ',' not found in '123456789'") def test_locale(self): try: oldloc = locale.setlocale(locale.LC_ALL) diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index d14336f8bac..d8a5eb27501 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -1738,6 +1738,7 @@ def testRadians(self): self.ftest('radians(-45)', math.radians(-45), -math.pi/4) self.ftest('radians(0)', math.radians(0), 0) + @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; Error message too long") @requires_IEEE_754 def testRemainder(self): from fractions import Fraction diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index ced9e27fed5..1bd8efa6a51 100644 --- a/Lib/test/test_types.py +++ b/Lib/test/test_types.py @@ -431,6 +431,7 @@ def test(i, format_spec, result): test(123456, "1=20", '11111111111111123456') test(123456, "*=20", '**************123456') + @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; AssertionError: '1,234.57' != '1234.57'") @run_with_locale('LC_NUMERIC', 'en_US.UTF8', '') def test_float__format__locale(self): # test locale support for __format__ code 'n' @@ -440,6 +441,7 @@ def test_float__format__locale(self): self.assertEqual(locale.format_string('%g', x, grouping=True), format(x, 'n')) self.assertEqual(locale.format_string('%.10g', x, grouping=True), format(x, '.10n')) + @unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; AssertionError: '123,456,789,012,345,678,901,234,567,890' != '123456789012345678901234567890'") @run_with_locale('LC_NUMERIC', 'en_US.UTF8', '') def test_int__format__locale(self): # test locale support for __format__ code 'n' for integers