From 08ce7c695899d2c62b2b32dbb733052e1ce9301c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 4 Aug 2025 16:48:24 +0200 Subject: [PATCH] gh-129033: Remove dead code in test.support.has_no_debug_ranges() (#137379) --- Lib/test/support/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 29cf32966d4e..4bfd01ed14a0 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -541,7 +541,6 @@ def has_no_debug_ranges(): except ImportError: raise unittest.SkipTest("_testinternalcapi required") return not _testcapi.config_get('code_debug_ranges') - return not bool(config['code_debug_ranges']) def requires_debug_ranges(reason='requires co_positions / debug_ranges'): try: -- 2.47.2