Issue #23943: Fix typos. Patch by Piotr Kasprzyk.
diff --git a/Lib/test/decimaltestdata/exp.decTest b/Lib/test/decimaltestdata/exp.decTest
index eab990d..cf8882f 100644
--- a/Lib/test/decimaltestdata/exp.decTest
+++ b/Lib/test/decimaltestdata/exp.decTest
@@ -19,7 +19,7 @@
------------------------------------------------------------------------
version: 2.59
--- Tests of the exponential funtion. Currently all testcases here
+-- Tests of the exponential function. Currently all testcases here
-- show results which are correctly rounded (within <= 0.5 ulp).
extended: 1
diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py
index 7cf7d06..354c33b 100644
--- a/Lib/test/test_doctest.py
+++ b/Lib/test/test_doctest.py
@@ -2113,7 +2113,7 @@
...
AttributeError: 'module' object has no attribute 'sillySetup'
- The setUp and tearDown funtions are passed test objects. Here
+ The setUp and tearDown functions are passed test objects. Here
we'll use the setUp function to supply the missing variable y:
>>> def setUp(test):
@@ -2259,7 +2259,7 @@
...
AttributeError: 'module' object has no attribute 'sillySetup'
- The setUp and tearDown funtions are passed test objects.
+ The setUp and tearDown functions are passed test objects.
Here, we'll use a setUp function to set the favorite color in
test_doctest.txt:
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index fe79b82..d784aea 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -299,7 +299,7 @@
"Error raising socket exception.")
def testSendtoErrors(self):
- # Testing that sendto doens't masks failures. See #10169.
+ # Testing that sendto doesn't masks failures. See #10169.
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.addCleanup(s.close)
s.bind(('', 0))
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index ac14e66..4c21e6b 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -739,7 +739,7 @@
def generator():
while 1:
- yield "genereator"
+ yield "generator"
def callback():
if callback.gen is None: