From 82ceef0276f5f96ae96466b554966e624eb3f827 Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Thu, 11 Apr 2024 20:12:26 +0000 Subject: [PATCH] gh-117649: Fix file descriptor leak in (expected) failing test case The test case is currently expected to fail in the free-threaded build. However, it fails before it gets a chance to close the write end of the pipe. --- Lib/test/test_capi/test_misc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py index 8cdecaf3626401..9c24ec8fd05b12 100644 --- a/Lib/test/test_capi/test_misc.py +++ b/Lib/test/test_capi/test_misc.py @@ -2139,6 +2139,9 @@ def check(enabled, override): } r, w = os.pipe() + if Py_GIL_DISABLED: + # gh-117649: The test fails before `w` is closed + self.addCleanup(os.close, w) script = textwrap.dedent(f''' from test.test_capi.check_config import run_singlephase_check run_singlephase_check({override}, {w}) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy