aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Juanli Shen <aspirinsjl@gmail.com>2018-12-17 12:11:16 -0800
committerGravatar GitHub <noreply@github.com>2018-12-17 12:11:16 -0800
commit00be85a3e1cec8d0be89e654aef145e9eea27fc3 (patch)
treeb35423829975db3e0c55d24870f8e4b50cb72fb9
parent3f7e26e08588bcaceab674f1376d39d66cbaf71f (diff)
parent1bd231605a341bea7ac841b72be212bb8df12f25 (diff)
Merge pull request #17528 from grpc/revert-17466-exit_tests
Revert "re-enable ExitTest"
-rw-r--r--src/python/grpcio_tests/commands.py8
-rw-r--r--src/python/grpcio_tests/tests/unit/_exit_test.py15
2 files changed, 1 insertions, 22 deletions
diff --git a/src/python/grpcio_tests/commands.py b/src/python/grpcio_tests/commands.py
index 18413abab0..65e9a99950 100644
--- a/src/python/grpcio_tests/commands.py
+++ b/src/python/grpcio_tests/commands.py
@@ -133,14 +133,6 @@ class TestGevent(setuptools.Command):
# TODO(https://github.com/grpc/grpc/issues/15411) unpin gevent version
# This test will stuck while running higher version of gevent
'unit._auth_context_test.AuthContextTest.testSessionResumption',
- # TODO(https://github.com/grpc/grpc/issues/15411) enable these tests
- 'unit._exit_test.ExitTest.test_in_flight_unary_unary_call',
- 'unit._exit_test.ExitTest.test_in_flight_unary_stream_call',
- 'unit._exit_test.ExitTest.test_in_flight_stream_unary_call',
- 'unit._exit_test.ExitTest.test_in_flight_stream_stream_call',
- 'unit._exit_test.ExitTest.test_in_flight_partial_unary_stream_call',
- 'unit._exit_test.ExitTest.test_in_flight_partial_stream_unary_call',
- 'unit._exit_test.ExitTest.test_in_flight_partial_stream_stream_call',
# TODO(https://github.com/grpc/grpc/issues/17330) enable these three tests
'channelz._channelz_servicer_test.ChannelzServicerTest.test_many_subchannels',
'channelz._channelz_servicer_test.ChannelzServicerTest.test_many_subchannels_and_sockets',
diff --git a/src/python/grpcio_tests/tests/unit/_exit_test.py b/src/python/grpcio_tests/tests/unit/_exit_test.py
index b429ee089f..5226537579 100644
--- a/src/python/grpcio_tests/tests/unit/_exit_test.py
+++ b/src/python/grpcio_tests/tests/unit/_exit_test.py
@@ -71,6 +71,7 @@ def wait(process):
process.wait()
+@unittest.skip('https://github.com/grpc/grpc/issues/7311')
class ExitTest(unittest.TestCase):
def test_unstarted_server(self):
@@ -129,8 +130,6 @@ class ExitTest(unittest.TestCase):
stderr=sys.stderr)
interrupt_and_wait(process)
- @unittest.skipIf(os.name == 'nt',
- 'os.kill does not have required permission on Windows')
def test_in_flight_unary_unary_call(self):
process = subprocess.Popen(
BASE_COMMAND + [_exit_scenarios.IN_FLIGHT_UNARY_UNARY_CALL],
@@ -139,8 +138,6 @@ class ExitTest(unittest.TestCase):
interrupt_and_wait(process)
@unittest.skipIf(six.PY2, 'https://github.com/grpc/grpc/issues/6999')
- @unittest.skipIf(os.name == 'nt',
- 'os.kill does not have required permission on Windows')
def test_in_flight_unary_stream_call(self):
process = subprocess.Popen(
BASE_COMMAND + [_exit_scenarios.IN_FLIGHT_UNARY_STREAM_CALL],
@@ -148,8 +145,6 @@ class ExitTest(unittest.TestCase):
stderr=sys.stderr)
interrupt_and_wait(process)
- @unittest.skipIf(os.name == 'nt',
- 'os.kill does not have required permission on Windows')
def test_in_flight_stream_unary_call(self):
process = subprocess.Popen(
BASE_COMMAND + [_exit_scenarios.IN_FLIGHT_STREAM_UNARY_CALL],
@@ -158,8 +153,6 @@ class ExitTest(unittest.TestCase):
interrupt_and_wait(process)
@unittest.skipIf(six.PY2, 'https://github.com/grpc/grpc/issues/6999')
- @unittest.skipIf(os.name == 'nt',
- 'os.kill does not have required permission on Windows')
def test_in_flight_stream_stream_call(self):
process = subprocess.Popen(
BASE_COMMAND + [_exit_scenarios.IN_FLIGHT_STREAM_STREAM_CALL],
@@ -168,8 +161,6 @@ class ExitTest(unittest.TestCase):
interrupt_and_wait(process)
@unittest.skipIf(six.PY2, 'https://github.com/grpc/grpc/issues/6999')
- @unittest.skipIf(os.name == 'nt',
- 'os.kill does not have required permission on Windows')
def test_in_flight_partial_unary_stream_call(self):
process = subprocess.Popen(
BASE_COMMAND +
@@ -178,8 +169,6 @@ class ExitTest(unittest.TestCase):
stderr=sys.stderr)
interrupt_and_wait(process)
- @unittest.skipIf(os.name == 'nt',
- 'os.kill does not have required permission on Windows')
def test_in_flight_partial_stream_unary_call(self):
process = subprocess.Popen(
BASE_COMMAND +
@@ -189,8 +178,6 @@ class ExitTest(unittest.TestCase):
interrupt_and_wait(process)
@unittest.skipIf(six.PY2, 'https://github.com/grpc/grpc/issues/6999')
- @unittest.skipIf(os.name == 'nt',
- 'os.kill does not have required permission on Windows')
def test_in_flight_partial_stream_stream_call(self):
process = subprocess.Popen(
BASE_COMMAND +