Skip to content
Snippets Groups Projects
Verified Commit f7897182 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment