Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #261

Merged
merged 1 commit into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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