Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
index 1f7fb776..20abe74 100644
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -3343,7 +3343,7 @@
self.assertRaises(TypeError, lambda: as_date >= as_datetime)
self.assertRaises(TypeError, lambda: as_datetime >= as_date)
- # Neverthelss, comparison should work with the base-class (date)
+ # Nevertheless, comparison should work with the base-class (date)
# projection if use of a date method is forced.
self.assertTrue(as_date.__eq__(as_datetime))
different_day = (as_date.day + 1) % 20 + 1
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 9bc114b..fc965f7 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -684,7 +684,7 @@
self.fail("inheriting from ModuleType and str at the same time "
"should fail")
- def test_multiple_inheritence(self):
+ def test_multiple_inheritance(self):
# Testing multiple inheritance...
class C(object):
def __init__(self):
@@ -815,7 +815,7 @@
else:
self.fail("new class with only classic bases - shouldn't be")
- def test_diamond_inheritence(self):
+ def test_diamond_inheritance(self):
# Testing multiple inheritance special cases...
class A(object):
def spam(self): return "A"
diff --git a/Lib/test/test_pep247.py b/Lib/test/test_pep247.py
index 423d333..7b06d00 100644
--- a/Lib/test/test_pep247.py
+++ b/Lib/test/test_pep247.py
@@ -1,5 +1,5 @@
"""
-Test suite to check compilance with PEP 247, the standard API
+Test suite to check compliance with PEP 247, the standard API
for hashing algorithms
"""
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py
index b4e4e9d..efcd1d2 100644
--- a/Lib/test/test_py3kwarn.py
+++ b/Lib/test/test_py3kwarn.py
@@ -270,7 +270,7 @@
class NoWarningOnlyHash(object):
def __hash__(self): pass
self.assertEqual(len(w.warnings), 0)
- # With an intermediate class in the heirarchy
+ # With an intermediate class in the hierarchy
class DefinesAllThree(object):
def __cmp__(self, other): pass
def __eq__(self, other): pass
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index 27a1d38..7b1ef6a 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -1,4 +1,4 @@
-"""Regresssion tests for urllib"""
+"""Regression tests for urllib"""
import collections
import urllib
diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py
index bb82b26..51a95dc 100644
--- a/Lib/test/test_urllib2_localnet.py
+++ b/Lib/test/test_urllib2_localnet.py
@@ -93,7 +93,7 @@
BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
def log_message(self, format, *args):
- # Supress the HTTP Console log output
+ # Suppress the HTTP Console log output
pass
def do_HEAD(self):
diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py
index 8e3cdf3..7db1f73 100644
--- a/Lib/test/test_winreg.py
+++ b/Lib/test/test_winreg.py
@@ -174,7 +174,7 @@
DeleteKey(key, "sub_key")
try:
- # Shouldnt be able to delete it twice!
+ # Shouldn't be able to delete it twice!
DeleteKey(key, "sub_key")
self.fail("Deleting the key twice succeeded")
except EnvironmentError: