summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-10-04 13:28:57 (GMT)
committerGitHub <noreply@github.com>2022-10-04 13:28:57 (GMT)
commit116fa62c6ee18e2b2ccf3697802034c0d13a16e8 (patch)
treefab3ca7446049af8e4b96a0d406f250f18f0303f /Lib/test
parent6e533088290b909df324615df24286489603989f (diff)
downloadcpython-116fa62c6ee18e2b2ccf3697802034c0d13a16e8.zip
cpython-116fa62c6ee18e2b2ccf3697802034c0d13a16e8.tar.gz
cpython-116fa62c6ee18e2b2ccf3697802034c0d13a16e8.tar.bz2
gh-97670: Remove sys.getdxp() and analyze_dxp.py script (#97671)
Remove the sys.getdxp() function and the Tools/scripts/analyze_dxp.py script. DXP stands for "dynamic execution pairs". They were related to DYNAMIC_EXECUTION_PROFILE and DXPAIRS macros which have been removed in Python 3.11. Python can now be built with "./configure --enable-pystats" to gather statistics on Python opcodes.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_tools/test_sundry.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/test/test_tools/test_sundry.py b/Lib/test/test_tools/test_sundry.py
index 52369ec..ed03c2f 100644
--- a/Lib/test/test_tools/test_sundry.py
+++ b/Lib/test/test_tools/test_sundry.py
@@ -25,7 +25,7 @@ class TestSundryScripts(unittest.TestCase):
# scripts that use windows-only modules
windows_only = ['win_add2path']
# denylisted for other reasons
- other = ['analyze_dxp', '2to3']
+ other = ['2to3']
skiplist = denylist + allowlist + windows_only + other
@@ -50,13 +50,6 @@ class TestSundryScripts(unittest.TestCase):
for name in self.windows_only:
import_tool(name)
- def test_analyze_dxp_import(self):
- if hasattr(sys, 'getdxp'):
- import_tool('analyze_dxp')
- else:
- with self.assertRaises(RuntimeError):
- import_tool('analyze_dxp')
-
if __name__ == '__main__':
unittest.main()