8000 Remove @unittest.expectedFailure · RustPython/RustPython@72a3288 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 72a3288

Browse files
committed
Remove @unittest.expectedFailure
1 parent d2949e7 commit 72a3288

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

Lib/test/test_format.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -502,29 +502,21 @@ def test_g_format_has_no_trailing_zeros(self):
502502
self.assertEqual(format(12300050.0, ".6g"), "1.23e+07")
503503
self.assertEqual(format(12300050.0, "#.6g"), "1.23000e+07")
504504

505-
# TODO: RUSTPYTHON
506-
@unittest.expectedFailure
507505
def test_with_two_commas_in_format_specifier(self):
508506
error_msg = re.escape("Cannot specify ',' with ','.")
509507
with self.assertRaisesRegex(ValueError, error_msg):
510508
'{:,,}'.format(1)
511509

512-
# TODO: RUSTPYTHON
513-
@unittest.expectedFailure
514510
def test_with_two_underscore_in_format_specifier(self):
515511
error_msg = re.escape("Cannot specify '_' with '_'.")
516512
with self.assertRaisesRegex(ValueError, error_msg):
517513
'{:__}'.format(1)
518514

519-
# TODO: RUSTPYTHON
520-
@unittest.expectedFailure
521515
def test_with_a_commas_and_an_underscore_in_format_specifier(self):
522516
error_msg = re.escape("Cannot specify both ',' and '_'.")
523517
with self.assertRaisesRegex(ValueError, error_msg):
524518
'{:,_}'.format(1)
525519

526-
# TODO: RUSTPYTHON
527-
@unittest.expectedFailure
528520
def test_with_an_underscore_and_a_comma_in_format_specifier(self):
529521
error_msg = re.escape("Cannot specify both ',' and '_'.")
530522
with self.assertRaisesRegex(ValueError, error_msg):

Lib/test/test_fstring.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,29 +1838,21 @@ def test_invalid_syntax_error_message(self):
18381838
):
18391839
compile("f'{a $ b}'", "?", "exec")
18401840

1841-
# TODO: RUSTPYTHON
1842-
@unittest.expectedFailure
18431841
def test_with_two_commas_in_format_specifier(self):
18441842
error_msg = re.escape("Cannot specify ',' with ','.")
18451843
with self.assertRaisesRegex(ValueError, error_msg):
18461844
f"{1:,,}"
18471845

1848-
# TODO: RUSTPYTHON
1849-
@unittest.expectedFailure
18501846
def test_with_two_underscore_in_format_specifier(self):
18511847
error_msg = re.escape("Cannot specify '_' with '_'.")
18521848
with self.assertRaisesRegex(ValueError, error_msg):
18531849
f"{1:__}"
18541850

1855-
# TODO: RUSTPYTHON
1856-
@unittest.expectedFailure
18571851
def test_with_a_commas_and_an_underscore_in_format_specifier(self):
18581852
error_msg = re.escape("Cannot specify both ',' and '_'.")
18591853
with self.assertRaisesRegex(ValueError, error_msg):
18601854
f"{1:,_}"
18611855

1862-
# TODO: RUSTPYTHON
1863-
@unittest.expectedFailure
18641856
def test_with_an_underscore_and_a_comma_in_format_specifier(self):
18651857
error_msg = re.escape("Cannot specify both ',' and '_'.")
18661858
with self.assertRaisesRegex(ValueError, error_msg):

Lib/test/test_long.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,6 @@ def __lt__(self, other):
625625
eq(x > y, Rcmp > 0)
626626
eq(x >= y, Rcmp >= 0)
627627

628-
# TODO: RUSTPYTHON
629-
@unittest.expectedFailure
630628
def test__format__(self):
631629
self.assertEqual(format(123456789, 'd'), '123456789')
632630
self.assertEqual(format(123456789, 'd'), '123456789')

0 commit comments

Comments
 (0)
0