Message400014
Would rewriting the test so that it doesn't yield be the right fix?
```
def test_subprocess_wait_no_same_group(self):
# start the new process in a new session
connect = self.loop.subprocess_shell(
functools.partial(MySubprocessProtocol, self.loop),
'exit 7', stdin=None, stdout=None, stderr=None,
start_new_session=True)
_, proto = yield self.loop.run_until_complete(connect)
self.assertIsInstance(proto, MySubprocessProtocol)
self.loop.run_until_complete(proto.completed)
self.assertEqual(7, proto.returncode)
```
to
```
def test_subprocess_wait_no_same_group(self):
# start the new process in a new session
connect = self.loop.subprocess_shell(
functools.partial(MySubprocessProtocol, self.loop),
'exit 7', stdin=None, stdout=None, stderr=None,
start_new_session=True)
transp, proto = self.loop.run_until_complete(connect)
self.assertIsInstance(proto, MySubprocessProtocol)
self.loop.run_until_complete(proto.completed)
self.assertEqual(7, proto.returncode)
transp.close()
``` |
|
Date |
User |
Action |
Args |
2021-08-21 03:49:36 | rmast | set | recipients:
+ rmast, terry.reedy, rbcollins, ezio.melotti, michael.foord, lukasz.langa, zach.ware, serhiy.storchaka, xtreak, defreng, andrei.avk, santhu_reddy12 |
2021-08-21 03:49:36 | rmast | set | messageid: <1629517776.23.0.835810651216.issue41322@roundup.psfhosted.org> |
2021-08-21 03:49:36 | rmast | link | issue41322 messages |
2021-08-21 03:49:36 | rmast | create | |
|