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

doc: Spelling fixes #1046

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
- Fixed an ugly traceback when a test class was imported from another module,
but was missing a method. (#595)
Patch by Michael Williamson.
- Fix formatFailure expection if missing tb in exc_info. (#603)
- Fix formatFailure exception if missing tb in exc_info. (#603)
Patch by Sascha Peilicke.
- Taught the test suite to skip coverage tests if the coverage module is not
available. (#597)
Expand Down Expand Up @@ -511,7 +511,7 @@
Lee for many bug reports.
- Fixed bugs in rpm generation (Issue #96). Thanks to Mike Verdone for
the bug report and http://bugs.python.org/issue644744 for the fix.
- Fixed inconsisent use of os.environ in plugin testing
- Fixed inconsistent use of os.environ in plugin testing
utilities. Thanks to John J Lee for the bug report and patch (Issue
#97).
- Fixed bug in test_address that prevented use of nose.case.Test in
Expand Down Expand Up @@ -638,7 +638,7 @@
- Fixed bug in handling of options from setup.cfg. Thanks to Kumar McMillan for
the patch.
- Fixed bug in generator methods, where a generator method using an inline
funciton would result in an AttributeError. Thanks to Antoine Pitrou for the
function would result in an AttributeError. Thanks to Antoine Pitrou for the
bug report.
- Updated coverage plugin to ignore lines tagged with #pragma: no cover,
matching the behavior of coverage.py on the command line. Thanks to Bill
Expand Down
2 changes: 1 addition & 1 deletion NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ is the selector useful? can it die, if we assume a more directed loading
approach?

The loader is the heart of the discovery system. It should be simple, clear,
and close to unittest's loader whereever possible. The complication comes from
and close to unittest's loader wherever possible. The complication comes from
supporting proper fixture setup and teardown when the test name requested is a
or is inside of a dotted module. Say we run like this:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ the most part, if an object's name matches the ``testMatch`` regular
expression defined in the active `nose.config.Config` instance, the
object is selected as a test.

This behavior is fine for new projects, but may be undesireable for
This behavior is fine for new projects, but may be undesirable for
older projects with a different test naming scheme. Fortunately, you
can easily override this behavior by providing a custom selector using
a plugin.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def waitForKillFile(killfile):
runner = os.path.join(support, 'fake_nosetest.py')
def keyboardinterrupt(case):
#os.setsid would create a process group so signals sent to the
#parent process will propogates to all children processes
#parent process will propagate to all children processes
if not hasattr(os, 'setsid') or not hasattr(os, 'killpg'):
raise SkipTest("OS does not support os.setsid or os.killpg")

Expand Down
4 changes: 2 additions & 2 deletions nose/ext/dtcompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ class Example:
zero-based, with respect to the beginning of the DocTest.

- indent: The example's indentation in the DocTest string.
I.e., the number of space characters that preceed the
I.e., the number of space characters that precede the
example's first prompt.

- options: A dictionary mapping from option flags to True or
Expand Down Expand Up @@ -1150,7 +1150,7 @@ def __run(self, test, compileflags, out):
# Process each example.
for examplenum, example in enumerate(test.examples):

# If REPORT_ONLY_FIRST_FAILURE is set, then supress
# If REPORT_ONLY_FIRST_FAILURE is set, then suppress
# reporting after the first failure.
quiet = (self.optionflags & REPORT_ONLY_FIRST_FAILURE and
failures > 0)
Expand Down
2 changes: 1 addition & 1 deletion nose/plugins/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def help(self):
return textwrap.dedent(self.__class__.__doc__)
return "(no help available)"

# Compatiblity shim
# Compatibility shim
def tolist(self, val):
warn("Plugin.tolist is deprecated. Use nose.util.tolist instead",
DeprecationWarning)
Expand Down
2 changes: 1 addition & 1 deletion nose/plugins/doctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def address(self):

# doctests loaded via find(obj) omit the module name
# so we need to override id, __repr__ and shortDescription
# bonus: this will squash a 2.3 vs 2.4 incompatiblity
# bonus: this will squash a 2.3 vs 2.4 incompatibility
def id(self):
name = self._dt_test.name
filename = self._dt_test.filename
Expand Down
2 changes: 1 addition & 1 deletion nose/pyversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def isgenerator(o):
try:
from compiler.consts import CO_GENERATOR
except ImportError:
# IronPython doesn't have a complier module
# IronPython doesn't have a compiler module
CO_GENERATOR=0x20

def isgenerator(func):
Expand Down
4 changes: 2 additions & 2 deletions nose/twistedtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def stop_reactor():
global _twisted_thread

def stop_reactor():
'''Helper for calling stop from withing the thread.'''
'''Helper for calling stop from within the thread.'''
reactor.stop()

reactor.callFromThread(stop_reactor)
Expand All @@ -92,7 +92,7 @@ def deferred(timeout=None):
The optional timeout parameter specifies the maximum duration of the test.
The difference with timed() is that timed() will still wait for the test
to end, while deferred() will stop the test when its timeout has expired.
The latter is more desireable when dealing with network tests, because
The latter is more desirable when dealing with network tests, because
the result may actually never arrive.

If the callback is triggered, the test has passed.
Expand Down
2 changes: 1 addition & 1 deletion nose/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def absfile(path, where=None):
if path is None or not os.path.exists(path):
return None
if os.path.isdir(path):
# might want an __init__.py from pacakge
# might want an __init__.py from package
init = os.path.join(path,'__init__.py')
if os.path.isfile(init):
return init
Expand Down