mirror of
https://github.com/python/cpython.git
synced 2025-10-28 17:13:08 +00:00
gh-76785: Fixes for test.support.interpreters (gh-112982)
This involves a number of changes for PEP 734.
This commit is contained in:
parent
f26bfe4b25
commit
86a77f4e1a
30 changed files with 2506 additions and 1507 deletions
|
|
@ -79,8 +79,7 @@ class Interpreter(namedtuple('Interpreter', 'name id')):
|
|||
name = 'interp'
|
||||
elif name == 'main':
|
||||
raise ValueError('name mismatch (unexpected "main")')
|
||||
if not isinstance(id, interpreters.InterpreterID):
|
||||
id = interpreters.InterpreterID(id)
|
||||
assert isinstance(id, int), repr(id)
|
||||
elif not name or name == 'main':
|
||||
name = 'main'
|
||||
id = main
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue