#11515: fix several typos. Patch by Piotr Kasprzyk.

This commit is contained in:
Ezio Melotti 2011-03-15 05:18:48 +02:00
parent f6db0bbbee
commit 42da663e6f
41 changed files with 1609 additions and 1608 deletions

View file

@ -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.

View file

@ -177,7 +177,7 @@ if 1:
self.assertEqual(eval("-" + all_one_bits), -18446744073709551615)
else:
self.fail("How many bits *does* this machine have???")
# Verify treatment of contant folding on -(sys.maxsize+1)
# Verify treatment of constant folding on -(sys.maxsize+1)
# i.e. -2147483648 on 32 bit platforms. Should return int, not long.
self.assertTrue(isinstance(eval("%s" % (-sys.maxsize - 1)), int))
self.assertTrue(isinstance(eval("%s" % (-sys.maxsize - 2)), int))

View file

@ -777,7 +777,7 @@ class ClassPropertiesAndMethods(unittest.TestCase):
# 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

View file

@ -273,7 +273,7 @@ class StatAttributeTests(unittest.TestCase):
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:
@ -320,7 +320,7 @@ class StatAttributeTests(unittest.TestCase):
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:

View file

@ -7,7 +7,7 @@ from weakref import proxy
# 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

View file

@ -584,7 +584,7 @@ class TestSet(TestJointOps):
self.le_called = True
return False
# This first tries the bulitin rich set comparison, which doesn't know
# This first tries the builtin rich set comparison, which doesn't know
# how to handle the custom object. Upon returning NotImplemented, the
# corresponding comparison on the right object is invoked.
myset = {1, 2, 3}

View file

@ -93,7 +93,7 @@ class ModuleTest(unittest.TestCase):
# 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)))

View file

@ -692,7 +692,7 @@ class PyCatchWarningTests(CatchWarningTests):
class BootstrapTest(unittest.TestCase):
def test_issue_8766(self):
# "import encodings" emits a warning whereas the warnings is not loaded
# or not completly loaded (warnings imports indirectly encodings by
# or not completely loaded (warnings imports indirectly encodings by
# importing linecache) yet
cwd = tempfile.mkdtemp()
try: