From f2765982cdb6f74a11e15826cb01b21053eae62d Mon Sep 17 00:00:00 2001 From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Wed, 18 Mar 2026 13:55:56 +0100 Subject: [PATCH] Remove some tests from `PLATFORM_INDEPENDENT_TESTS` (#7459) * Remove some platform dependent tests * Mark failing tests --- .github/workflows/ci.yaml | 4 ---- Lib/test/test_class.py | 1 + Lib/test/test_format.py | 1 + Lib/test/test_math.py | 1 + Lib/test/test_types.py | 2 ++ 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b99b8a162..be3528e6f 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 diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py index 7420f289b..5a3f0744a 100644 --- a/Lib/test/test_class.py +++ b/Lib/test/test_class.py @@ -614,6 +614,7 @@ class ClassTests(unittest.TestCase): 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 6868c8717..d53a3f461 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -423,6 +423,7 @@ class FormatTest(unittest.TestCase): 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 d14336f8b..d8a5eb275 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -1738,6 +1738,7 @@ class MathTests(unittest.TestCase): 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 ced9e27fe..1bd8efa6a 100644 --- a/Lib/test/test_types.py +++ b/Lib/test/test_types.py @@ -431,6 +431,7 @@ class TypesTests(unittest.TestCase): 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 @@ class TypesTests(unittest.TestCase): 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