Commit 957dabba authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Do not replace stdout when running tests

in order to have usable pdb repl
parent 71770ace
......@@ -252,7 +252,7 @@ class SynnefoManagementUtility(ManagementUtility):
# Encode stdout. This check is required because of the way python
# checks if something is tty: https://bugzilla.redhat.com/show_bug.cgi?id=841152
if not 'shell' in subcommand:
if not subcommand in ['test'] and not 'shell' in subcommand:
sys.stdout = EncodedStdOut(sys.stdout)
if subcommand == 'help':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment