summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-30 01:12:00 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-30 01:12:00 +0100
commit6c7490e724d1bd64dafa7d4b773302fa58971632 (patch)
tree1df95e9afd0d2d6a802585fe20a7523cd442de56 /tests
parentd37a906ecc49e12b84431d78b4911534040fd503 (diff)
downloadtrollius-git-6c7490e724d1bd64dafa7d4b773302fa58971632.tar.gz
Python issue #23347: send_signal(), terminate(), kill() don't check if the
transport was closed. The check broken a Tulip example and this limitation is arbitrary. Check if _proc is None should be enough. Enhance also close(): do nothing when called the second time.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_subprocess.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/test_subprocess.py b/tests/test_subprocess.py
index d4b71b7..b467b04 100644
--- a/tests/test_subprocess.py
+++ b/tests/test_subprocess.py
@@ -47,22 +47,6 @@ class SubprocessTransportTests(test_utils.TestCase):
None, None, None, 0, waiter=waiter)
return (transport, protocol)
- def test_close(self):
- waiter = asyncio.Future(loop=self.loop)
- transport, protocol = self.create_transport(waiter)
- transport._process_exited(0)
- transport.close()
-
- # The loop didn't run yet
- self.assertFalse(protocol.connection_made.called)
-
- # methods must raise ProcessLookupError if the transport was closed
- self.assertRaises(ValueError, transport.send_signal, signal.SIGTERM)
- self.assertRaises(ValueError, transport.terminate)
- self.assertRaises(ValueError, transport.kill)
-
- self.loop.run_until_complete(waiter)
-
def test_proc_exited(self):
waiter = asyncio.Future(loop=self.loop)
transport, protocol = self.create_transport(waiter)