From: Victor Stinner Date: Mon, 4 Aug 2025 14:48:24 +0000 (+0200) Subject: gh-129033: Remove dead code in test.support.has_no_debug_ranges() (#137379) X-Git-Tag: v3.15.0a1~784 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08ce7c695899d2c62b2b32dbb733052e1ce9301c;p=thirdparty%2FPython%2Fcpython.git gh-129033: Remove dead code in test.support.has_no_debug_ranges() (#137379) --- 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: