https://github.com/python/cpython/commit/925c75211dc6ed4527f179b388fa2f478031a7e5
commit: 925c75211dc6ed4527f179b388fa2f478031a7e5
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2025-09-08T18:03:23+03:00
summary:

[3.14] gh-129033: Remove dead code in test.support.has_no_debug_ranges() 
(GH-137379) (#137382)

Co-authored-by: Victor Stinner <[email protected]>

files:
M Lib/test/support/__init__.py

diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index aab2645fb96307..65c1da29936bd3 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:

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to