Permalink
Browse files

Log tested cli stuff to stderr

  • Loading branch information...
1 parent 3cc630a commit bb5907b0f4e4e0f070394e2f5b0d74c91aa9bdb1 @DasIch committed Apr 5, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 pwhash/tests/test_config.py
@@ -7,6 +7,7 @@
:license: BSD, see LICENSE.rst for details
"""
import os
+import sys
from contextlib import contextmanager
import pytest
@@ -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)

0 comments on commit bb5907b

Please sign in to comment.