Create a better expectation

If we pass all this stuff to Popen we should expect to see it from get_argv() right?
This commit is contained in:
Jean-Paul Calderone 2021-01-10 20:18:00 -05:00
parent 28435d65c1
commit 3bde012ea1

View File

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