From eb46a33f9ec7078f62dc7819a0daaad1f1eeb330 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 4 Aug 2025 15:25:59 +0200 Subject: [PATCH] gh-129033: Remove dead code in test.support.has_no_debug_ranges() --- 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 29cf32966d4e4a..4bfd01ed14a0a1 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: