Skip to content

Commit fac285e

Browse files
committed
Update test_signal
1 parent 6f0e248 commit fac285e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_signal.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def handler(signum, frame):
383383
except ZeroDivisionError:
384384
# An ignored exception should have been printed out on stderr
385385
err = err.getvalue()
386-
if ('Exception ignored when trying to write to the signal wakeup fd'
386+
if ('Exception ignored while trying to write to the signal wakeup fd'
387387
not in err):
388388
raise AssertionError(err)
389389
if ('OSError: [Errno %d]' % errno.EBADF) not in err:
@@ -572,7 +572,7 @@ def handler(signum, frame):
572572
signal.raise_signal(signum)
573573
574574
err = err.getvalue()
575-
if ('Exception ignored when trying to {action} to the signal wakeup fd'
575+
if ('Exception ignored while trying to {action} to the signal wakeup fd'
576576
not in err):
577577
raise AssertionError(err)
578578
""".format(action=action)
@@ -642,7 +642,7 @@ def handler(signum, frame):
642642
"buffer" % written)
643643
644644
# By default, we get a warning when a signal arrives
645-
msg = ('Exception ignored when trying to {action} '
645+
msg = ('Exception ignored while trying to {action} '
646646
'to the signal wakeup fd')
647647
signal.set_wakeup_fd(write.fileno())
648648

0 commit comments

Comments
 (0)