From 48dddf0ec75fa2196031e0e1e99db51d3ab5c57d Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Fri, 20 Dec 2024 20:16:35 +0100 Subject: [PATCH] universal_newlines=True --- psutil/tests/test_scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psutil/tests/test_scripts.py b/psutil/tests/test_scripts.py index 79ca8a791..c354d2ad3 100755 --- a/psutil/tests/test_scripts.py +++ b/psutil/tests/test_scripts.py @@ -233,7 +233,7 @@ def test_python2(self): [shutil.which("python2.7"), SETUP_PY], stdout=subprocess.PIPE, stderr=subprocess.PIPE, - text=True, + universal_newlines=True, ) stdout, stderr = p.communicate() assert p.wait() == 1