From 13afb05fe4455408b94b3a9cbf612bd1d3b63231 Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Sat, 5 Oct 2024 00:53:06 +0300 Subject: [PATCH] Fix max_handles for NetBSD in test_no_leaking --- Lib/test/test_subprocess.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index f065b9c9bb1c2c..080cec56a29fd5 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -1214,7 +1214,9 @@ def test_communicate_errors(self): def test_no_leaking(self): # Make sure we leak no resources - if not mswindows: + if sys.platform.startswith("netbsd"): + max_handles = 512 + elif not mswindows: max_handles = 1026 # too much for most UNIX systems else: max_handles = 2050 # too much for (at least some) Windows setups