https://github.com/python/cpython/commit/08ce7c695899d2c62b2b32dbb733052e1ce9301c
commit: 08ce7c695899d2c62b2b32dbb733052e1ce9301c
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2025-08-04T16:48:24+02:00
summary:
gh-129033: Remove dead code in test.support.has_no_debug_ranges() (#137379)
files:
M Lib/test/support/__init__.py
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:
_______________________________________________
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]