diff --git a/src/python/grpcio_tests/commands.py b/src/python/grpcio_tests/commands.py index f6b5859ced4..87724dab774 100644 --- a/src/python/grpcio_tests/commands.py +++ b/src/python/grpcio_tests/commands.py @@ -227,7 +227,10 @@ class TestGevent(setuptools.Command): ) BANNED_WINDOWS_TESTS = ( # TODO(https://github.com/grpc/grpc/pull/15411) enable this test - 'unit._dns_resolver_test.DNSResolverTest.test_connect_loopback',) + 'unit._dns_resolver_test.DNSResolverTest.test_connect_loopback', + # TODO(https://github.com/grpc/grpc/issues/22257) + 'unit._contextvars_propagation_test.ContextVarsPropagationTest', + ) description = 'run tests with gevent. Assumes grpc/gevent are installed' user_options = [] diff --git a/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py b/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py index 538199b6def..4daad0b4562 100644 --- a/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py +++ b/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py @@ -103,10 +103,7 @@ class ContextVarsPropagationTest(unittest.TestCase): def test_propagation_to_auth_plugin(self): set_up_expected_context() with _server() as port: - # NOTE(rbellevi): We use a literal IPV6 address because 'localhost' - # is not recognized as a local address by the LocalCredentials - # implementation on Windows. - target = "[::1]:{}".format(port) + target = "localhost:{}".format(port) local_credentials = grpc.local_channel_credentials() test_call_credentials = TestCallCredentials() call_credentials = grpc.metadata_call_credentials(