From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:03:23 +0000 (+0200) Subject: [3.14] gh-129033: Remove dead code in test.support.has_no_debug_ranges() (GH-137379... X-Git-Tag: v3.14.0rc3~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=925c75211dc6ed4527f179b388fa2f478031a7e5;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-129033: Remove dead code in test.support.has_no_debug_ranges() (GH-137379) (#137382) Co-authored-by: Victor Stinner --- diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index aab2645fb963..65c1da29936b 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: