make sure executable is unicode too, if that matters

This commit is contained in:
Jean-Paul Calderone 2021-01-11 09:51:36 -05:00
parent b5f0e21ef8
commit 30c79bf678

View File

@ -117,7 +117,7 @@ class GetArgvTests(SyncTestCase):
from subprocess import ( from subprocess import (
PIPE, PIPE,
) )
argv = [executable, save_argv_path.path] + argv argv = [executable.decode("utf-8"), save_argv_path.path] + argv
returncode = Popen(argv, stdin=PIPE, stdout=PIPE, stderr=PIPE).wait() returncode = Popen(argv, stdin=PIPE, stdout=PIPE, stderr=PIPE).wait()
self.assertThat( self.assertThat(
returncode, returncode,