tests/test_binary: don't capture unused output from subprocess.

Fixes test on stretch-backports where subprocess.check_call() doesn't know of the 'encoding' argument. Gbp-Dch: Short Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 2eb16112
......@@ -145,9 +145,8 @@ def test_with_compare_details_and_failed_process():
class MockFile(FilesystemFile):
def compare_details(self, other, source=None):
subprocess.check_output(
subprocess.check_call(
['sh', '-c', 'echo "%s"; exit 42' % output],
encoding='utf-8',
)
raise Exception('should not be run')
difference = MockFile(TEST_FILE1_PATH).compare(MockFile(TEST_FILE2_PATH))
......
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