summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-12-02 10:43:37 (GMT)
committerGitHub <noreply@github.com>2021-12-02 10:43:37 (GMT)
commita6c3b0faa1d55e36539caf19bd3bcf1dea12df84 (patch)
tree806b78a43fe43b90a490d8a0abcba622352768ac /Lib/test/support
parentcb2b3c8d3566ae46b3b8d0718019e1c98484589e (diff)
downloadcpython-a6c3b0faa1d55e36539caf19bd3bcf1dea12df84.zip
cpython-a6c3b0faa1d55e36539caf19bd3bcf1dea12df84.tar.gz
cpython-a6c3b0faa1d55e36539caf19bd3bcf1dea12df84.tar.bz2
bpo-45954: Rename PyConfig.no_debug_ranges to code_debug_ranges (GH-29886)
Rename PyConfig.no_debug_ranges to PyConfig.code_debug_ranges and invert the value. Document -X no_debug_ranges and PYTHONNODEBUGRANGES env var in PyConfig.code_debug_ranges documentation.
Diffstat (limited to 'Lib/test/support')
-rw-r--r--Lib/test/support/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 6d84a8b..f8faa41 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -449,7 +449,7 @@ def has_no_debug_ranges():
except ImportError:
raise unittest.SkipTest("_testinternalcapi required")
config = _testinternalcapi.get_config()
- return bool(config['no_debug_ranges'])
+ return not bool(config['code_debug_ranges'])
def requires_debug_ranges(reason='requires co_positions / debug_ranges'):
return unittest.skipIf(has_no_debug_ranges(), reason)