summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-06-02 10:11:18 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-06-02 10:11:18 +0000
commit0b7d84de6b3ec5264392e3bf7d3900b003cbeffd (patch)
tree12987b101c150c8f44514c5a1421f3fa168c82d4 /Lib/test
parentfa6de5cddf9cd2029b7c2a0fe8b4c5ef27a1273e (diff)
parente26da7c03a714faa115fe6b708ef0730119aa4b3 (diff)
downloadcpython-git-0b7d84de6b3ec5264392e3bf7d3900b003cbeffd.tar.gz
Issue #27171: Merge typo fixes from 3.5
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_bigmem.py2
-rw-r--r--Lib/test/test_email/test_policy.py2
-rw-r--r--Lib/test/test_module.py2
-rw-r--r--Lib/test/test_pep3151.py6
-rw-r--r--Lib/test/test_random.py2
-rw-r--r--Lib/test/test_socket.py2
-rw-r--r--Lib/test/test_sys_setprofile.py2
7 files changed, 9 insertions, 9 deletions
diff --git a/Lib/test/test_bigmem.py b/Lib/test/test_bigmem.py
index 9488b30290..6133bbcac5 100644
--- a/Lib/test/test_bigmem.py
+++ b/Lib/test/test_bigmem.py
@@ -736,7 +736,7 @@ class StrTest(unittest.TestCase, BaseStrTest):
finally:
r = s = None
- # The original test_translate is overriden here, so as to get the
+ # The original test_translate is overridden here, so as to get the
# correct size estimate: str.translate() uses an intermediate Py_UCS4
# representation.
diff --git a/Lib/test/test_email/test_policy.py b/Lib/test/test_email/test_policy.py
index 9bb32f0c48..70ac4db8b0 100644
--- a/Lib/test/test_email/test_policy.py
+++ b/Lib/test/test_email/test_policy.py
@@ -177,7 +177,7 @@ class PolicyAPITests(unittest.TestCase):
with self.assertRaisesRegex(self.MyDefect, "the telly is broken"):
self.MyPolicy(raise_on_defect=True).handle_defect(foo, defect)
- def test_overriden_register_defect_works(self):
+ def test_overridden_register_defect_works(self):
foo = self.MyObj()
defect1 = self.MyDefect("one")
my_policy = self.MyPolicy()
diff --git a/Lib/test/test_module.py b/Lib/test/test_module.py
index 3a076b392a..ea6e89733b 100644
--- a/Lib/test/test_module.py
+++ b/Lib/test/test_module.py
@@ -227,7 +227,7 @@ a = A(destroyed)"""
b"len = len",
b"shutil.rmtree = rmtree"})
- def test_descriptor_errors_propogate(self):
+ def test_descriptor_errors_propagate(self):
class Descr:
def __get__(self, o, t):
raise RuntimeError
diff --git a/Lib/test/test_pep3151.py b/Lib/test/test_pep3151.py
index c57c3dcd46..8649596790 100644
--- a/Lib/test/test_pep3151.py
+++ b/Lib/test/test_pep3151.py
@@ -163,7 +163,7 @@ class ExplicitSubclassingTest(unittest.TestCase):
e = SubOSError(EEXIST, "Bad file descriptor")
self.assertIs(type(e), SubOSError)
- def test_init_overriden(self):
+ def test_init_overridden(self):
e = SubOSErrorWithInit("some message", "baz")
self.assertEqual(e.bar, "baz")
self.assertEqual(e.args, ("some message",))
@@ -173,7 +173,7 @@ class ExplicitSubclassingTest(unittest.TestCase):
self.assertEqual(e.bar, "baz")
self.assertEqual(e.args, ("some message",))
- def test_new_overriden(self):
+ def test_new_overridden(self):
e = SubOSErrorWithNew("some message", "baz")
self.assertEqual(e.baz, "baz")
self.assertEqual(e.args, ("some message",))
@@ -183,7 +183,7 @@ class ExplicitSubclassingTest(unittest.TestCase):
self.assertEqual(e.baz, "baz")
self.assertEqual(e.args, ("some message",))
- def test_init_new_overriden(self):
+ def test_init_new_overridden(self):
e = SubOSErrorCombinedInitFirst("some message", "baz")
self.assertEqual(e.bar, "baz")
self.assertEqual(e.baz, "baz")
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py
index 4b5232fe21..5393431ff6 100644
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -494,7 +494,7 @@ class MersenneTwister_TestBasicOps(TestBasicOps, unittest.TestCase):
self.assertTrue(2**k > n > 2**(k-1)) # note the stronger assertion
@unittest.mock.patch('random.Random.random')
- def test_randbelow_overriden_random(self, random_mock):
+ def test_randbelow_overridden_random(self, random_mock):
# Random._randbelow() can only use random() when the built-in one
# has been overridden but no new getrandbits() method was supplied.
random_mock.side_effect = random.SystemRandom().random
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 1bb24b2785..1ddd6044b9 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1314,7 +1314,7 @@ class GeneralModuleTests(unittest.TestCase):
# socket.gethostbyaddr('испытание.python.org')
def check_sendall_interrupted(self, with_timeout):
- # socketpair() is not stricly required, but it makes things easier.
+ # socketpair() is not strictly required, but it makes things easier.
if not hasattr(signal, 'alarm') or not hasattr(socket, 'socketpair'):
self.skipTest("signal.alarm and socket.socketpair required for this test")
# Our signal handlers clobber the C errno by calling a math function
diff --git a/Lib/test/test_sys_setprofile.py b/Lib/test/test_sys_setprofile.py
index bb71acd856..a3e1d31fbe 100644
--- a/Lib/test/test_sys_setprofile.py
+++ b/Lib/test/test_sys_setprofile.py
@@ -164,7 +164,7 @@ class ProfileHookTestCase(TestCaseBase):
(1, 'return', g_ident),
])
- def test_exception_propogation(self):
+ def test_exception_propagation(self):
def f(p):
1/0
def g(p):