From 2a8127cafe1d196f858a3ecabf5f1df3eebf9a12 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 29 Aug 2021 14:04:40 +0300 Subject: bpo-25130: Add calls of gc.collect() in tests to support PyPy (GH-28005) --- Lib/test/test_subprocess.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/test/test_subprocess.py') diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 94a95c7a00..87967ca7f3 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -3026,6 +3026,7 @@ class POSIXProcessTestCase(BaseTestCase): pid = p.pid with warnings_helper.check_warnings(('', ResourceWarning)): p = None + support.gc_collect() # For PyPy or other GCs. os.kill(pid, signal.SIGKILL) if mswindows: -- cgit v1.2.1