summaryrefslogtreecommitdiff
path: root/tests/unit/misc/test_checkpyver.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/misc/test_checkpyver.py')
-rw-r--r--tests/unit/misc/test_checkpyver.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/misc/test_checkpyver.py b/tests/unit/misc/test_checkpyver.py
index a23d02e1c..35f8cfeec 100644
--- a/tests/unit/misc/test_checkpyver.py
+++ b/tests/unit/misc/test_checkpyver.py
@@ -39,8 +39,7 @@ def test_old_python(python):
try:
proc = subprocess.run(
[python, checkpyver.__file__, '--no-err-windows'],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
+ capture_output=True,
check=False)
except FileNotFoundError:
pytest.skip(f"{python} not found")