From 165df16945b623a38997fee6880917c59f11569a Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Tue, 21 Jun 2022 23:25:17 -0400 Subject: [PATCH] Unmark passing tests due to CI limitations --- Lib/test/test_socket.py | 6 ++++-- Lib/test/test_xmlrpc.py | 15 --------------- Lib/test/test_yield_from.py | 10 ---------- 3 files changed, 4 insertions(+), 27 deletions(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 3875eac938..5cec7589ee 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1487,8 +1487,6 @@ class GeneralModuleTests(unittest.TestCase): @unittest.skipUnless(support.is_resource_enabled('network'), 'network is not enabled') - # TODO: RUSTPYTHON, socket.gethostbyname_ex - @unittest.expectedFailure def test_idna(self): # Check for internet access before running test # (issue #12804, issue #25138). @@ -1504,6 +1502,10 @@ class GeneralModuleTests(unittest.TestCase): # have a reverse entry yet # socket.gethostbyaddr('испытание.python.org') + # TODO: RUSTPYTHON, socket.gethostbyname_ex + if sys.platform != "darwin": + test_idna = unittest.expectedFailure(test_idna) + def check_sendall_interrupted(self, with_timeout): # socketpair() is not strictly required, but it makes things easier. if not hasattr(signal, 'alarm') or not hasattr(socket, 'socketpair'): diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index f31e5058c7..110f52bcb1 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -394,11 +394,6 @@ class SimpleXMLRPCDispatcherTestCase(unittest.TestCase): self.assertIsNone(exc_ctx.exception.__cause__) self.assertIsNone(exc_ctx.exception.__context__) - # TODO: RUSTPYTHON - import os - if os.getenv("CI"): - test_call_registered_func = unittest.expectedFailure(test_call_registered_func) - def test_call_instance_func(self): """Calls a registered instance attribute as a function""" # Makes sure any exception raised inside the function has no other @@ -418,11 +413,6 @@ class SimpleXMLRPCDispatcherTestCase(unittest.TestCase): self.assertIsNone(exc_ctx.exception.__cause__) self.assertIsNone(exc_ctx.exception.__context__) - # TODO: RUSTPYTHON - import os - if os.getenv("CI"): - test_call_instance_func = unittest.expectedFailure(test_call_instance_func) - def test_call_dispatch_func(self): """Calls the registered instance's `_dispatch` function""" # Makes sure any exception raised inside the function has no other @@ -444,11 +434,6 @@ class SimpleXMLRPCDispatcherTestCase(unittest.TestCase): self.assertIsNone(exc_ctx.exception.__cause__) self.assertIsNone(exc_ctx.exception.__context__) - # TODO: RUSTPYTHON - import os - if os.getenv("CI"): - test_call_dispatch_func = unittest.expectedFailure(test_call_dispatch_func) - def test_registered_func_is_none(self): """Calls explicitly registered function which is None""" diff --git a/Lib/test/test_yield_from.py b/Lib/test/test_yield_from.py index 4b997be009..744537f835 100644 --- a/Lib/test/test_yield_from.py +++ b/Lib/test/test_yield_from.py @@ -298,11 +298,6 @@ class TestPEP380Operation(unittest.TestCase): "Finishing g1", ]) - # TODO: RUSTPYTHON - import os - if os.getenv("CI"): - test_handing_exception_while_delegating_close = unittest.expectedFailure(test_handing_exception_while_delegating_close) - def test_delegating_throw(self): """ Test delegating 'throw' @@ -889,11 +884,6 @@ class TestPEP380Operation(unittest.TestCase): "Enter f", ]) - # TODO: RUSTPYTHON - import os - if os.getenv("CI"): - test_throwing_GeneratorExit_into_subgen_that_raises = unittest.expectedFailure(test_throwing_GeneratorExit_into_subgen_that_raises) - def test_yield_from_empty(self): def g(): yield from ()