mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
gh-101524: Split Up the _xxsubinterpreters Module (gh-101526)
This is step 1 in potentially dropping all the "channel"-related code. Channels have already been removed from PEP 554. https://github.com/python/cpython/issues/101524
This commit is contained in:
parent
d4c410f0f9
commit
c67b00534a
15 changed files with 4007 additions and 3697 deletions
|
@ -8,6 +8,7 @@ import time
|
|||
from test import support
|
||||
from test.support import import_helper
|
||||
_interpreters = import_helper.import_module('_xxsubinterpreters')
|
||||
_channels = import_helper.import_module('_xxinterpchannels')
|
||||
from test.support import interpreters
|
||||
|
||||
|
||||
|
@ -533,7 +534,7 @@ class TestRecvChannelAttrs(TestBase):
|
|||
|
||||
def test_id_type(self):
|
||||
rch, _ = interpreters.create_channel()
|
||||
self.assertIsInstance(rch.id, _interpreters.ChannelID)
|
||||
self.assertIsInstance(rch.id, _channels.ChannelID)
|
||||
|
||||
def test_custom_id(self):
|
||||
rch = interpreters.RecvChannel(1)
|
||||
|
@ -558,7 +559,7 @@ class TestSendChannelAttrs(TestBase):
|
|||
|
||||
def test_id_type(self):
|
||||
_, sch = interpreters.create_channel()
|
||||
self.assertIsInstance(sch.id, _interpreters.ChannelID)
|
||||
self.assertIsInstance(sch.id, _channels.ChannelID)
|
||||
|
||||
def test_custom_id(self):
|
||||
sch = interpreters.SendChannel(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue