Skip to content

Commit 327f904

Browse files
committed
Use f-string for exception message in test_wait_after_external_wait
1 parent f77e2ea commit 327f904

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_subprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3377,8 +3377,8 @@ def test_wait_after_external_wait(self):
33773377
proc.wait()
33783378

33793379
# Verify the exception contains proper information
3380-
exc = cm.exception
3381-
self.assertIn('%d is already waited on externally' % proc.pid, str(exc))
3380+
self.assertIn(f'{proc.pid} is already waited on externally',
3381+
str(cm.exception))
33823382
proc.kill()
33833383

33843384
def test_send_signal_race(self):

0 commit comments

Comments
 (0)