diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-17 13:11:40 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-17 13:11:40 (GMT) |
commit | b5bc353b8893461b0ecdf0e4bc2b299ef2b19bc0 (patch) | |
tree | fecebf5a3c00ff7f3194ff1296e4cb26468634f0 /Lib/test | |
parent | 9ff79f7c46fc13bb0855d33ab75acd578a950abf (diff) | |
download | cpython-b5bc353b8893461b0ecdf0e4bc2b299ef2b19bc0.zip cpython-b5bc353b8893461b0ecdf0e4bc2b299ef2b19bc0.tar.gz cpython-b5bc353b8893461b0ecdf0e4bc2b299ef2b19bc0.tar.bz2 |
#18741: fix more typos. Patch by FĂ©vry Thibault.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/support/__init__.py | 4 | ||||
-rw-r--r-- | Lib/test/test_email/test_headerregistry.py | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 5924f15..0b3bd68 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -246,7 +246,7 @@ def unload(name): if sys.platform.startswith("win"): def _waitfor(func, pathname, waitall=False): - # Peform the operation + # Perform the operation func(pathname) # Now setup the wait loop if waitall: @@ -262,7 +262,7 @@ if sys.platform.startswith("win"): # required when contention occurs. timeout = 0.001 while timeout < 1.0: - # Note we are only testing for the existance of the file(s) in + # Note we are only testing for the existence of the file(s) in # the contents of the directory regardless of any security or # access rights. If we have made it this far, we have sufficient # permissions to do that much using Python's equivalent of the diff --git a/Lib/test/test_email/test_headerregistry.py b/Lib/test/test_email/test_headerregistry.py index f754a32..f829f83 100644 --- a/Lib/test/test_email/test_headerregistry.py +++ b/Lib/test/test_email/test_headerregistry.py @@ -531,7 +531,7 @@ class TestContentTypeHeader(TestHeaderBase): '\tname*1*=%2A%2A%2Afun%2A%2A%2A%20;\tname*2="is it not.pdf"\n'), ), - # Make sure we also handle it if there are spurrious double qoutes. + # Make sure we also handle it if there are spurious double quotes. 'rfc2231_encoded_with_double_quotes': ( ("text/plain;" '\tname*0*="us-ascii\'\'This%20is%20even%20more%20";' @@ -711,8 +711,8 @@ class TestContentTypeHeader(TestHeaderBase): # in double quotes, making the value a valid non-encoded string. The # old parser decodes this just like the previous case, which may be the # better Postel rule, but could equally result in borking headers that - # intentially have quoted quotes in them. We could get this 98% right - # if we treat it as a quoted string *unless* it matches the + # intentionally have quoted quotes in them. We could get this 98% + # right if we treat it as a quoted string *unless* it matches the # charset'lang'value pattern exactly *and* there is at least one # encoded segment. Implementing that algorithm will require some # refactoring, so I haven't done it (yet). @@ -944,7 +944,7 @@ class TestMIMEVersionHeader(TestHeaderBase): [errors.InvalidHeaderDefect]), # Unrecoverable invalid values. We *could* apply more heuristics to - # get someing out of the first two, but doing so is not worth the + # get something out of the first two, but doing so is not worth the # effort. 'non_comment_garbage_before': ( @@ -1541,13 +1541,13 @@ class TestFolding(TestHeaderBase): def test_fold_unstructured_with_commas(self): # The old wrapper would fold this at the commas. h = self.make_header('Subject', "This header is intended to " - "demonstrate, in a fairly susinct way, that we now do " + "demonstrate, in a fairly succinct way, that we now do " "not give a , special treatment in unstructured headers.") self.assertEqual( h.fold(policy=policy.default.clone(max_line_length=60)), textwrap.dedent("""\ Subject: This header is intended to demonstrate, in a fairly - susinct way, that we now do not give a , special treatment + succinct way, that we now do not give a , special treatment in unstructured headers. """)) |