summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-05-26 05:35:26 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-05-26 05:35:26 (GMT)
commit46f50726a0047ae81d478c3a206f587b8f35ed08 (patch)
tree2046fa568e0abebe8f055b30fbbd4585a429a708 /Lib/unittest
parenteb9aca3c071aab925831a389ab26816c170dc159 (diff)
downloadcpython-46f50726a0047ae81d478c3a206f587b8f35ed08.zip
cpython-46f50726a0047ae81d478c3a206f587b8f35ed08.tar.gz
cpython-46f50726a0047ae81d478c3a206f587b8f35ed08.tar.bz2
Issue #27076: Doc, comment and tests spelling fixes
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/loader.py2
-rw-r--r--Lib/unittest/result.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/unittest/loader.py b/Lib/unittest/loader.py
index b254c80..eb447d7 100644
--- a/Lib/unittest/loader.py
+++ b/Lib/unittest/loader.py
@@ -387,7 +387,7 @@ class TestLoader(object):
if tests is not None:
yield tests
if not should_recurse:
- # Either an error occured, or load_tests was used by the
+ # Either an error occurred, or load_tests was used by the
# package.
return
# Handle the contents.
diff --git a/Lib/unittest/result.py b/Lib/unittest/result.py
index a18f11b..c7e3206 100644
--- a/Lib/unittest/result.py
+++ b/Lib/unittest/result.py
@@ -148,7 +148,7 @@ class TestResult(object):
self.skipped.append((test, reason))
def addExpectedFailure(self, test, err):
- """Called when an expected failure/error occured."""
+ """Called when an expected failure/error occurred."""
self.expectedFailures.append(
(test, self._exc_info_to_string(err, test)))