Skip to content

Commit 353ead4

Browse files
committed
[GR-44300] Ignore stderr when comparing against expected output.
PullRequest: graalpython/2640
2 parents a7a789a + 8e001e9 commit 353ead4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_patched_pip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def run_venv_pip_install(self, package, extra_env=None):
8484

8585
def run_test_fun(self):
8686
code = "import patched_package; print(patched_package.test_fun())"
87-
out = subprocess.getoutput(f"{self.venv_python} -c '{code}'").strip()
87+
out = subprocess.check_output([self.venv_python, '-c', code], universal_newlines=True).strip()
8888
return out
8989

9090
def test_pip_launcher(self):

0 commit comments

Comments
 (0)