Skip to content

Commit

Permalink
Merge pull request #3 from mdmintz/always-print-output
Browse files Browse the repository at this point in the history
Always print the output of print() statements
  • Loading branch information
mdmintz authored May 3, 2023
2 parents 6514ba8 + 2661ed8 commit e9fccf9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ Changes in ``pynose`` from legacy ``nose`` include:
* Fixes all ``flake8`` issues from the original ``nose``.
* Fixes "ImportError: cannot import name '_TextTestResult' from 'unittest'."
* Fixes "RuntimeWarning: TestResult has no addDuration method."
* Replaces the ``imp`` library with the newer ``importlib`` library.
* Replaces the ``imp`` module with the newer ``importlib`` module.
* The default logging level now hides "debug" logs for less noise.
* The ``-s`` option is always active to see the output of ``print()``.
* Adds ``--co`` as a shortcut to using ``--collect-only``.

--------
Expand Down
2 changes: 1 addition & 1 deletion nose/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# pynose nose package
__version__ = "1.4.3"
__version__ = "1.4.4"
5 changes: 2 additions & 3 deletions nose/plugins/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class Capture(Plugin):
appending any output captured to the error or failure output,
should the test fail or raise an error."""
enabled = True
env_opt = 'NOSE_NOCAPTURE'
name = 'capture'
name = "capture"
score = 1600

def __init__(self):
Expand All @@ -34,7 +33,7 @@ def options(self, parser, env):
"""Register commandline options"""
parser.add_option(
"-s", "--nocapture", action="store_false",
default=not env.get(self.env_opt), dest="capture",
default=False, dest="capture",
help="Don't capture stdout (any stdout output "
"will be printed immediately) [NOSE_NOCAPTURE]"
)
Expand Down

0 comments on commit e9fccf9

Please sign in to comment.