diff options
author | Frank Benkstein <frank.benkstein@sap.com> | 2016-01-28 21:10:15 +0100 |
---|---|---|
committer | Frank Benkstein <frank.benkstein@sap.com> | 2016-01-29 12:38:23 +0100 |
commit | b3cec49d323724a09a88a77f481b561455c82166 (patch) | |
tree | 674f46ffbc265bb65127dda84a02428cc4c83f94 | |
parent | 212e1c9a3a5c3df272ab6751f7ac720e5c1fe770 (diff) | |
download | psutil-b3cec49d323724a09a88a77f481b561455c82166.tar.gz |
fix (very) sporadic error in RemoteProcessTestCase
-rw-r--r-- | test/_windows.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/_windows.py b/test/_windows.py index 90b3bd97..f812880c 100644 --- a/test/_windows.py +++ b/test/_windows.py @@ -526,8 +526,12 @@ class RemoteProcessTestCase(unittest.TestCase): test_args = ["-c", "import sys; sys.stdin.read()"] def setUp(self): - self.proc32 = get_test_subprocess([self.python32] + self.test_args) - self.proc64 = get_test_subprocess([self.python64] + self.test_args) + self.proc32 = get_test_subprocess([self.python32] + self.test_args, + env=env, + stdin=subprocess.PIPE) + self.proc64 = get_test_subprocess([self.python64] + self.test_args, + env=env, + stdin=subprocess.PIPE) def tearDown(self): self.proc32.communicate() |