# HG changeset patch # User Mads Kiilerich # Date 2016-06-14 01:16:12 # Node ID 10d7b01af4f0b9ea353b0ed66a9d4fd0d88e625b # Parent 5ca5379641d03e547f7ba66f0c40e617045cdc83 tests: make debug output from manual_test_vcs_operations Command.execute less noisy diff --git a/kallithea/tests/other/manual_test_vcs_operations.py b/kallithea/tests/other/manual_test_vcs_operations.py --- a/kallithea/tests/other/manual_test_vcs_operations.py +++ b/kallithea/tests/other/manual_test_vcs_operations.py @@ -71,8 +71,10 @@ class Command(object): p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE, cwd=self.cwd, env=testenv) stdout, stderr = p.communicate() if DEBUG: - print 'stdout:', repr(stdout) - print 'stderr:', repr(stderr) + if stdout: + print 'stdout:', repr(stdout) + if stderr: + print 'stderr:', repr(stderr) return stdout, stderr