Skip to content

Commit

Permalink
Log tested cli stuff to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
DasIch committed Apr 5, 2013
1 parent 3cc630a commit bb5907b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pwhash/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
:license: BSD, see LICENSE.rst for details
"""
import os
import sys
from contextlib import contextmanager

import pytest
Expand All @@ -19,7 +20,11 @@
class TestConfigCLI(object):
@contextmanager
def spawn(self, command, *args, **kwargs):
p = pexpect.spawn("pwhash-config %s" % command, *args, **kwargs)
p = pexpect.spawn(
"pwhash-config %s" % command,
logfile=sys.stderr,
*args, **kwargs
)
try:
yield p
p.expect(pexpect.EOF)
Expand Down

0 comments on commit bb5907b

Please sign in to comment.