8000 gh-99741: Implement Multi-Phase Init for the _xxsubinterpreters Module by ericsnowcurrently · Pull Request #99742 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-99741: Implement Multi-Phase Init for the _xxsubinterpreters Module #99742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prev Previous commit
Next Next commit
Add a test for importing the module in a subinterpreter.
  • Loading branch information
ericsnowcurrently committed Dec 5, 2022
commit 6932dc709aa2bff2db814a351d5c846067f32d33
9 changes: 9 additions & 0 deletions Lib/test/test__xxsubinterpreters.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,15 @@ def test_non_shareable_int(self):
interpreters.channel_send(self.cid, i)


class ModuleTests(TestBase):

def test_import_in_interpreter(self):
_run_output(
interpreters.create(),
'import _xxsubinterpreters as _interpreters',
)


##################################
# interpreter tests

Expand Down
0