Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43a68ab

Browse files
committed
Unmark passing tests due to CI limitations
1 parent 7d22dee commit 43a68ab

File tree

3 files changed

+4
-27
lines changed

3 files changed

+4
-27
lines changed

Lib/test/test_socket.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,8 +1487,6 @@ def test_getnameinfo(self):
14871487

14881488
@unittest.skipUnless(support.is_resource_enabled('network'),
14891489
'network is not enabled')
1490-
# TODO: RUSTPYTHON, socket.gethostbyname_ex
1491-
@unittest.expectedFailure
14921490
def test_idna(self):
14931491
# Check for internet access before running test
14941492
# (issue #12804, issue #25138).
@@ -1504,6 +1502,10 @@ def test_idna(self):
15041502
# have a reverse entry yet
15051503
# socket.gethostbyaddr('испытание.python.org')
15061504

1505+
# TODO: RUSTPYTHON, socket.gethostbyname_ex
1506+
if sys.platform != "darwin":
1507+
test_idna = unittest.expectedFailure(test_idna)
1508+
15071509
def check_sendall_interrupted(self, with_timeout):
15081510
# socketpair() is not strictly required, but it makes things easier.
15091511
if not hasattr(signal, 'alarm') or not hasattr(socket, 'socketpair'):

Lib/test/test_xmlrpc.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,6 @@ def dispatched_func(*params):
394394
self.assertIsNone(exc_ctx.exception.__cause__)
395395
self.assertIsNone(exc_ctx.exception.__context__)
396396

397-
# TODO: RUSTPYTHON
398-
import os
399-
if os.getenv("CI"):
400-
test_call_registered_func = unittest.expectedFailure(test_call_registered_func)
401-
402397
def test_call_instance_func(self):
403398
"""Calls a registered instance attribute as a function"""
404399
# Makes sure any exception raised inside the function has no other
@@ -418,11 +413,6 @@ def dispatched_func(self, *params):
418413
self.assertIsNone(exc_ctx.exception.__cause__)
419414
self.assertIsNone(exc_ctx.exception.__context__)
420415

421-
# TODO: RUSTPYTHON
422-
import os
423-
if os.getenv("CI"):
424-
test_call_instance_func = unittest.expectedFailure(test_call_instance_func)
425-
426416
def test_call_dispatch_func(self):
427417
"""Calls the registered instance's `_dispatch` function"""
428418
# Makes sure any exception raised inside the function has no other
@@ -444,11 +434,6 @@ def _dispatch(self, method, params):
444434
self.assertIsNone(exc_ctx.exception.__cause__)
445435
self.assertIsNone(exc_ctx.exception.__context__)
446436

447-
# TODO: RUSTPYTHON
448-
import os
449-
if os.getenv("CI"):
450-
test_call_dispatch_func = unittest.expectedFailure(test_call_dispatch_func)
451-
452437
def test_registered_func_is_none(self):
453438
"""Calls explicitly registered function which is None"""
454439

Lib/test/test_yield_from.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,6 @@ def g2():
298298
"Finishing g1",
299299
])
300300

301-
# TODO: RUSTPYTHON
302-
import os
303-
if os.getenv("CI"):
304-
test_handing_exception_while_delegating_close = unittest.expectedFailure(test_handing_exception_while_delegating_close)
305-
306301
def test_delegating_throw(self):
307302
"""
308303
Test delegating 'throw'
@@ -889,11 +884,6 @@ def g():
889884
"Enter f",
890885
])
891886

892-
# TODO: RUSTPYTHON
893-
import os
894-
if os.getenv("CI"):
895-
test_throwing_GeneratorExit_into_subgen_that_raises = unittest.expectedFailure(test_throwing_GeneratorExit_into_subgen_that_raises)
896-
897887
def test_yield_from_empty(self):
898888
def g():
899889
yield from ()

0 commit comments

Comments
 (0)