mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
gh-129354: Fix grammar in PyErr_FormatUnraisable() (#129475)
Replace "on verb+ing" with "while verb+ing".
This commit is contained in:
parent
3ebe3d7688
commit
95504f429e
25 changed files with 79 additions and 59 deletions
|
@ -383,7 +383,7 @@ class WakeupSignalTests(unittest.TestCase):
|
|||
except ZeroDivisionError:
|
||||
# An ignored exception should have been printed out on stderr
|
||||
err = err.getvalue()
|
||||
if ('Exception ignored when trying to write to the signal wakeup fd'
|
||||
if ('Exception ignored while trying to write to the signal wakeup fd'
|
||||
not in err):
|
||||
raise AssertionError(err)
|
||||
if ('OSError: [Errno %d]' % errno.EBADF) not in err:
|
||||
|
@ -572,7 +572,7 @@ class WakeupSocketSignalTests(unittest.TestCase):
|
|||
signal.raise_signal(signum)
|
||||
|
||||
err = err.getvalue()
|
||||
if ('Exception ignored when trying to {action} to the signal wakeup fd'
|
||||
if ('Exception ignored while trying to {action} to the signal wakeup fd'
|
||||
not in err):
|
||||
raise AssertionError(err)
|
||||
""".format(action=action)
|
||||
|
@ -642,7 +642,7 @@ class WakeupSocketSignalTests(unittest.TestCase):
|
|||
"buffer" % written)
|
||||
|
||||
# By default, we get a warning when a signal arrives
|
||||
msg = ('Exception ignored when trying to {action} '
|
||||
msg = ('Exception ignored while trying to {action} '
|
||||
'to the signal wakeup fd')
|
||||
signal.set_wakeup_fd(write.fileno())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue