]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-129033: Remove dead code in test.support.has_no_debug_ranges() (GH-137379...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Sep 2025 15:03:23 +0000 (17:03 +0200)
committerGitHub <noreply@github.com>
Mon, 8 Sep 2025 15:03:23 +0000 (18:03 +0300)
Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/support/__init__.py

index aab2645fb96307273eaac09f62ebce9a04338804..65c1da29936bd31c1e14f461a2392d3e950907cc 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: