Skip to content

Commit 692b0bb

Browse files
committed
feat : remove expected failures
Signed-off-by: snowapril <sinjihng@gmail.com>
1 parent 97f871f commit 692b0bb

File tree

4 files changed

+0
-15
lines changed

4 files changed

+0
-15
lines changed

Lib/test/test_builtin.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,8 +2368,6 @@ def __del__(self):
23682368

23692369

23702370
class TestType(unittest.TestCase):
2371-
# TODO: RUSTPYTHON
2372-
@unittest.expectedFailure
23732371
def test_new_type(self):
23742372
A = type('A', (), {})
23752373
self.assertEqual(A.__name__, 'A')
@@ -2472,8 +2470,6 @@ def test_type_doc(self):
24722470
A.__doc__ = doc
24732471
self.assertEqual(A.__doc__, doc)
24742472

2475-
# TODO: RUSTPYTHON
2476-
@unittest.expectedFailure
24772473
def test_bad_args(self):
24782474
with self.assertRaises(TypeError):
24792475
type()

Lib/test/test_descr.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,6 @@ class X(C, int()):
823823
class X(int(), C):
824824
pass
825825

826-
# TODO: RUSTPYTHON
827-
@unittest.expectedFailure
828826
def test_module_subclasses(self):
829827
# Testing Python subclass of module...
830828
log = []
@@ -1500,8 +1498,6 @@ class someclass(metaclass=dynamicmetaclass):
15001498
pass
15011499
self.assertNotEqual(someclass, object)
15021500

1503-
# TODO: RUSTPYTHON
1504-
@unittest.expectedFailure
15051501
def test_errors(self):
15061502
# Testing errors...
15071503
try:

Lib/test/test_posix.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,8 +1680,6 @@ def test_initgroups(self):
16801680
posix.initgroups(name, g)
16811681
self.assertIn(g, posix.getgroups())
16821682

1683-
# TODO: RUSTPYTHON: TypeError: Unexpected keyword argument setpgroup
1684-
@unittest.expectedFailure
16851683
@unittest.skipUnless(hasattr(posix, 'setgroups'),
16861684
"test needs posix.setgroups()")
16871685
def test_setgroups(self):

Lib/test/test_types.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,6 @@ def test(i, format_spec, result):
392392
test(123456, "1=20", '11111111111111123456')
393393
test(123456, "*=20", '**************123456')
394394

395-
@unittest.expectedFailure
396-
@run_with_locale('LC_NUMERIC', 'en_US.UTF8')
397395
def test_float__format__locale(self):
398396
# test locale support for __format__ code 'n'
399397

@@ -421,9 +419,6 @@ def test_int__format__locale(self):
421419
self.assertEqual(len(format(0, lfmt)), len(format(x, lfmt)))
422420
self.assertEqual(len(format(0, cfmt)), len(format(x, cfmt)))
423421

424-
if sys.platform != "darwin":
425-
test_int__format__locale = unittest.expectedFailure(test_int__format__locale)
426-
427422
def test_float__format__(self):
428423
def test(f, format_spec, result):
429424
self.assertEqual(f.__format__(format_spec), result)

0 commit comments

Comments
 (0)