mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
gh-104780: Remove 2to3 program and lib2to3 module (#104781)
* Remove the Tools/scripts/2to3 script. * Remove the Lib/test/test_lib2to3/ directory. * Doc/tools/extensions/pyspecific.py: remove the "2to3fixer" object type. * Makefile and PC/layout/main.py no longer compile lib2to3 grammar files. * Update Makefile for 2to3 removal.
This commit is contained in:
parent
ddb1485953
commit
ae00b810d1
135 changed files with 26 additions and 21000 deletions
|
@ -14,11 +14,6 @@ from test.test_tools import scriptsdir, import_tool, skip_if_missing
|
|||
skip_if_missing()
|
||||
|
||||
class TestSundryScripts(unittest.TestCase):
|
||||
# At least make sure the rest don't have syntax errors. When tests are
|
||||
# added for a script it should be added to the allowlist below.
|
||||
|
||||
skiplist = ['2to3']
|
||||
|
||||
# import logging registers "atfork" functions which keep indirectly the
|
||||
# logging module dictionary alive. Mock the function to be able to unload
|
||||
# cleanly the logging module.
|
||||
|
@ -31,9 +26,6 @@ class TestSundryScripts(unittest.TestCase):
|
|||
continue
|
||||
|
||||
name = fn[:-3]
|
||||
if name in self.skiplist:
|
||||
continue
|
||||
|
||||
import_tool(name)
|
||||
finally:
|
||||
# Unload all modules loaded in this test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue