]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-129033: Remove dead code in test.support.has_no_debug_ranges() (#137379)
authorVictor Stinner <vstinner@python.org>
Mon, 4 Aug 2025 14:48:24 +0000 (16:48 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Aug 2025 14:48:24 +0000 (16:48 +0200)
Lib/test/support/__init__.py

index 29cf32966d4e4a679f25432d73c8c740022e1791..4bfd01ed14a0a12ea56ef82f68438422a9544051 100644 (file)
@@ -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: