Skip to content

Commit

Permalink
Fix problem with testing click CLI output
Browse files Browse the repository at this point in the history
* Using sys.stdout/stderror with subprocess.call caused click testing
  CLIRunner to fail when NPM writes to stdout, since CLIRunner wraps
  stdout with a stream that does not support fileno which is required by
  subprocess.call.
  • Loading branch information
lnielsen committed May 16, 2017
1 parent c329d07 commit b897311
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pynpm/utils.py
Expand Up @@ -22,8 +22,6 @@ def run_npm(pkgdir, cmd, args=None, npm_bin='npm', wait=True):
if wait:
return subprocess.call(
command,
stdout=sys.stdout,
stderr=sys.stderr,
cwd=pkgdir,
)
else:
Expand Down

0 comments on commit b897311

Please sign in to comment.