Skip to content

Commit

Permalink
Always print output of print() statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed May 3, 2023
1 parent 6514ba8 commit a50362e
Showing 1 changed file with 2 additions and 3 deletions.
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 a50362e

Please sign in to comment.