Skip to content

Commit f276598

Browse files
authored
Remove some tests from PLATFORM_INDEPENDENT_TESTS (RustPython#7459)
* Remove some platform dependent tests * Mark failing tests
1 parent 62edc47 commit f276598

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ jobs:
187187
test_bool
188188
test_bytes
189189
test_call
190-
test_class
191190
test_cmath
192191
test_collections
193192
test_complex
@@ -205,7 +204,6 @@ jobs:
205204
test_enumerate
206205
test_exception_variations
207206
test_float
208-
test_format
209207
test_fractions
210208
test_genericalias
211209
test_genericclass
@@ -224,7 +222,6 @@ jobs:
224222
test_list
225223
test_long
226224
test_longexp
227-
test_math
228225
test_operator
229226
test_ordered_dict
230227
test_pep646_syntax
@@ -244,7 +241,6 @@ jobs:
244241
test_syntax
245242
test_tstring
246243
test_tuple
247-
test_types
248244
test_unary
249245
test_unpack
250246
test_unpack_ex

Lib/test/test_class.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ def assertNotOrderable(self, a, b):
614614
with self.assertRaises(TypeError):
615615
a >= b
616616

617+
@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; AssertionError: 1543448294720 != 1543448295392")
617618
def testHashComparisonOfMethods(self):
618619
# Test comparison and hash of methods
619620
class A:

Lib/test/test_format.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ def test_non_ascii(self):
423423
self.assertEqual(format(1+2j, "\u2007^8"), "\u2007(1+2j)\u2007")
424424
self.assertEqual(format(0j, "\u2007^4"), "\u20070j\u2007")
425425

426+
@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; AssertionError: ',' not found in '123456789'")
426427
def test_locale(self):
427428
try:
428429
oldloc = locale.setlocale(locale.LC_ALL)

Lib/test/test_math.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,6 +1738,7 @@ def testRadians(self):
17381738
self.ftest('radians(-45)', math.radians(-45), -math.pi/4)
17391739
self.ftest('radians(0)', math.radians(0), 0)
17401740

1741+
@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; Error message too long")
17411742
@requires_IEEE_754
17421743
def testRemainder(self):
17431744
from fractions import Fraction

Lib/test/test_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ def test(i, format_spec, result):
431431
test(123456, "1=20", '11111111111111123456')
432432
test(123456, "*=20", '**************123456')
433433

434+
@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; AssertionError: '1,234.57' != '1234.57'")
434435
@run_with_locale('LC_NUMERIC', 'en_US.UTF8', '')
435436
def test_float__format__locale(self):
436437
# test locale support for __format__ code 'n'
@@ -440,6 +441,7 @@ def test_float__format__locale(self):
440441
self.assertEqual(locale.format_string('%g', x, grouping=True), format(x, 'n'))
441442
self.assertEqual(locale.format_string('%.10g', x, grouping=True), format(x, '.10n'))
442443

444+
@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; AssertionError: '123,456,789,012,345,678,901,234,567,890' != '123456789012345678901234567890'")
443445
@run_with_locale('LC_NUMERIC', 'en_US.UTF8', '')
444446
def test_int__format__locale(self):
445447
# test locale support for __format__ code 'n' for integers

0 commit comments

Comments
 (0)