From 18de71666f212788c20f1ef673b259a014118f18 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Sun, 10 Jan 2021 20:10:34 -0500 Subject: [PATCH] try to work-around bugs in the Popen hotfix --- src/allmydata/test/test_windows.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/test_windows.py b/src/allmydata/test/test_windows.py index b0231987d..ae62af857 100644 --- a/src/allmydata/test/test_windows.py +++ b/src/allmydata/test/test_windows.py @@ -110,7 +110,10 @@ class GetArgvTests(SyncTestCase): from ._win_subprocess import ( Popen ) - returncode = Popen([executable, save_argv_path.path] + argv).wait() + from subprocess import ( + PIPE, + ) + returncode = Popen([executable, save_argv_path.path] + argv, stdin=PIPE, stdout=PIPE, stderr=PIPE).wait() self.assertThat( 0, Equals(returncode),