#11515: fix several typos. Patch by Piotr Kasprzyk.
diff --git a/Lib/test/crashers/recursion_limit_too_high.py b/Lib/test/crashers/recursion_limit_too_high.py
index 1fa4d32..ec64936 100644
--- a/Lib/test/crashers/recursion_limit_too_high.py
+++ b/Lib/test/crashers/recursion_limit_too_high.py
@@ -5,7 +5,7 @@
# file handles.
# The point of this example is to show that sys.setrecursionlimit() is a
-# hack, and not a robust solution. This example simply exercices a path
+# hack, and not a robust solution. This example simply exercises a path
# where it takes many C-level recursions, consuming a lot of stack
# space, for each Python-level recursion. So 1000 times this amount of
# stack space may be too much for standard platforms already.
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py
index 8a95f6d..22d1708 100644
--- a/Lib/test/test_compile.py
+++ b/Lib/test/test_compile.py
@@ -252,7 +252,7 @@
self.assertEqual(eval("-" + all_one_bits), -18446744073709551615L)
else:
self.fail("How many bits *does* this machine have???")
- # Verify treatment of contant folding on -(sys.maxint+1)
+ # Verify treatment of constant folding on -(sys.maxint+1)
# i.e. -2147483648 on 32 bit platforms. Should return int, not long.
self.assertIsInstance(eval("%s" % (-sys.maxint - 1)), int)
self.assertIsInstance(eval("%s" % (-sys.maxint - 2)), long)
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index c482cac..7d85641 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -876,7 +876,7 @@
# see "A Monotonic Superclass Linearization for Dylan",
# by Kim Barrett et al. (OOPSLA 1996)
def test_consistency_with_epg(self):
- # Testing consistentcy with EPG...
+ # Testing consistency with EPG...
class Pane(object): pass
class ScrollingMixin(object): pass
class EditingMixin(object): pass
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 6f68620..6435b61 100644
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -243,7 +243,7 @@
except TypeError:
pass
- # Use the constructr with a too-long tuple.
+ # Use the constructor with a too-long tuple.
try:
result2 = os.stat_result((0,1,2,3,4,5,6,7,8,9,10,11,12,13,14))
except TypeError:
@@ -290,7 +290,7 @@
except TypeError:
pass
- # Use the constructr with a too-long tuple.
+ # Use the constructor with a too-long tuple.
try:
result2 = os.statvfs_result((0,1,2,3,4,5,6,7,8,9,10,11,12,13,14))
except TypeError:
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index f978086..6d06527 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -7,7 +7,7 @@
# Misc tests from Tim Peters' re.doc
# WARNING: Don't change details in these tests if you don't know
-# what you're doing. Some of these tests were carefuly modeled to
+# what you're doing. Some of these tests were carefully modeled to
# cover most of the code.
import unittest
diff --git a/Lib/test/test_string.py b/Lib/test/test_string.py
index 7947e43..0d07b91 100644
--- a/Lib/test/test_string.py
+++ b/Lib/test/test_string.py
@@ -176,7 +176,7 @@
# test all parameters used
class CheckAllUsedFormatter(string.Formatter):
def check_unused_args(self, used_args, args, kwargs):
- # Track which arguments actuallly got used
+ # Track which arguments actually got used
unused_args = set(kwargs.keys())
unused_args.update(range(0, len(args)))