We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f77e2ea commit 327f904Copy full SHA for 327f904
1 file changed
Lib/test/test_subprocess.py
@@ -3377,8 +3377,8 @@ def test_wait_after_external_wait(self):
3377
proc.wait()
3378
3379
# Verify the exception contains proper information
3380
- exc = cm.exception
3381
- self.assertIn('%d is already waited on externally' % proc.pid, str(exc))
+ self.assertIn(f'{proc.pid} is already waited on externally',
+ str(cm.exception))
3382
proc.kill()
3383
3384
def test_send_signal_race(self):
0 commit comments