]> granicus.if.org Git - python/commitdiff
bpo-32923: Unittest doc: replace `whilst` with `while` (GH-5833)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 23 Feb 2018 18:16:56 +0000 (10:16 -0800)
committerGitHub <noreply@github.com>
Fri, 23 Feb 2018 18:16:56 +0000 (10:16 -0800)
`whilst` and `while` are both english words, `whilst` is not as commonly used.
This can be confusing to readers whose primary language is not english.
(cherry picked from commit 98f42aac23f3863973cb6e9964c5212cfd3a1d98)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
Doc/library/unittest.rst

index 15765f5ed58892074b5d2289423fc3f122efa648..b36126e1cc6587b96d56fb9cfd66a8993eb5c899 100644 (file)
@@ -2038,7 +2038,7 @@ handling functionality within test frameworks.
 
    When called without arguments this function removes the control-c handler
    if it has been installed. This function can also be used as a test decorator
-   to temporarily remove the handler whilst the test is being executed::
+   to temporarily remove the handler while the test is being executed::
 
       @unittest.removeHandler
       def test_signal_handling(self):