Skip to content

Commit

Permalink
docs: Fix a few typos
Browse files Browse the repository at this point in the history
There are small typos in:
- green/loader.py
- green/output.py
- green/result.py

Fixes:
- Should read `overridden` rather than `overriden`.
- Should read `hierarchies` rather than `heirarchies`.
- Should read `expected` rather than `expeced`.
- Should read `additional` rather than `additonal`.

Signed-off-by: Tim Gates <[email protected]>
  • Loading branch information
timgates42 committed Jul 23, 2022
1 parent ddfec93 commit ad2c8ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions green/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def filter_test_methods(attrname):
test_case_names = list(filter(filter_test_methods, dir(testCaseClass)))
debug("Test case names: {}".format(test_case_names))

# Use default unittest.TestSuite sorting method if not overriden
# Use default unittest.TestSuite sorting method if not overridden
test_case_names.sort(key=functools.cmp_to_key(self.sortTestMethodsUsing))

if not test_case_names and hasattr(testCaseClass, "runTest"):
Expand Down Expand Up @@ -479,7 +479,7 @@ def flattenTestSuite(test_suite, module=None):
suite.injected_module = module.__name__
suites.append(suite)

# Now extract all tests from the suite heirarchies and flatten them into a
# Now extract all tests from the suite hierarchies and flatten them into a
# single suite with all tests.
tests = []
for suite in suites:
Expand Down
2 changes: 1 addition & 1 deletion green/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def className(self, text):

class GreenStream(object):
"""
Wraps a stream-like object with the following additonal features:
Wraps a stream-like object with the following additional features:
1) A handy writeln() method (which calls write() under-the-hood)
2) Handy formatLine() and formatText() methods, which support indent
Expand Down
2 changes: 1 addition & 1 deletion green/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def addSkip(self, test, reason):

def addExpectedFailure(self, test, err):
"""
Called when a test fails, and we expeced the failure
Called when a test fails, and we expected the failure
"""
self.expectedFailures.append((proto_test(test), proto_error(err)))

Expand Down

0 comments on commit ad2c8ac

Please sign in to comment.