Skip to content

Commit bc780d4

Browse files
committed
Remove internals heavy asyncio test that's covered elsewhere.
1 parent 1110364 commit bc780d4

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

Lib/test/test_asyncio/test_subprocess.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -112,34 +112,6 @@ def test_subprocess_repr(self):
112112
)
113113
transport.close()
114114

115-
def test_proc_exited_no_invalid_state_error_on_exit_waiters(self):
116-
# gh-145541: when _connect_pipes hasn't completed (so
117-
# _pipes_connected is False) and the process exits, _try_finish()
118-
# sets the result on exit waiters. Then _call_connection_lost() must
119-
# not call set_result() again on the same waiters.
120-
self.loop.set_exception_handler(
121-
lambda loop, context: self.fail(
122-
f"unexpected exception: {context}")
123-
)
124-
waiter = self.loop.create_future()
125-
transport, protocol = self.create_transport(waiter)
126-
127-
# Simulate a waiter registered via _wait() before the process exits.
128-
exit_waiter = self.loop.create_future()
129-
transport._exit_waiters.append(exit_waiter)
130-
131-
# Simulate process exit. _try_finish() will set the result on
132-
# exit_waiter because _pipes_connected is False, and then schedule
133-
# _call_connection_lost() because _pipes is empty (vacuously all
134-
# disconnected). _call_connection_lost() must skip exit_waiter
135-
# because it's already done.
136-
transport._process_exited(6)
137-
self.loop.run_until_complete(waiter)
138-
139-
self.assertEqual(exit_waiter.result(), 6)
140-
141-
transport.close()
142-
143115

144116
class SubprocessMixin:
145117

0 commit comments

Comments
 (0)