diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-15 03:18:48 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-15 03:18:48 (GMT) |
commit | 42da663e6fe7ecbb89b17d596c76812a91bb99a4 (patch) | |
tree | f660a093d1eb0841656b9b10173589f357ec0484 /Lib/test | |
parent | f6db0bbbeefa1bde9fd09c53e7c6bf0e57481590 (diff) | |
download | cpython-42da663e6fe7ecbb89b17d596c76812a91bb99a4.zip cpython-42da663e6fe7ecbb89b17d596c76812a91bb99a4.tar.gz cpython-42da663e6fe7ecbb89b17d596c76812a91bb99a4.tar.bz2 |
#11515: fix several typos. Patch by Piotr Kasprzyk.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/crashers/recursion_limit_too_high.py | 2 | ||||
-rw-r--r-- | Lib/test/test_compile.py | 2 | ||||
-rw-r--r-- | Lib/test/test_descr.py | 2 | ||||
-rw-r--r-- | Lib/test/test_os.py | 4 | ||||
-rw-r--r-- | Lib/test/test_re.py | 2 | ||||
-rw-r--r-- | Lib/test/test_set.py | 2 | ||||
-rw-r--r-- | Lib/test/test_string.py | 2 | ||||
-rw-r--r-- | Lib/test/test_warnings.py | 2 |
8 files changed, 9 insertions, 9 deletions
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 5d1f478..749a551 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py @@ -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)) diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index 97a4e4b..6b9e30d 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -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 diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 6ff7add..cbf0c16 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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: diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 44b5dfe..268d66d 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -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 diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py index de0d9a8..fdbfe19 100644 --- a/Lib/test/test_set.py +++ b/Lib/test/test_set.py @@ -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} diff --git a/Lib/test/test_string.py b/Lib/test/test_string.py index b495d69..f46be63 100644 --- a/Lib/test/test_string.py +++ b/Lib/test/test_string.py @@ -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))) diff --git a/Lib/test/test_warnings.py b/Lib/test/test_warnings.py index 2b41ba1..77f5be0 100644 --- a/Lib/test/test_warnings.py +++ b/Lib/test/test_warnings.py @@ -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: |