Skip to content

gh-76785: Module-level Fixes for test.support.interpreters #110236

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

Merged
merged 9 commits into from
Oct 2, 2023
Prev Previous commit
Next Next commit
Add tests.
  • Loading branch information
ericsnowcurrently committed Oct 2, 2023
commit cac4a7686ffffe5b877391ce5470eb09129863a5
16 changes: 16 additions & 0 deletions Lib/test/test_interpreters.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,22 @@ def test_list_all(self):
after = set(interpreters.list_all_channels())
self.assertEqual(after, created)

def test_shareable(self):
rch, sch = interpreters.create_channel()

self.assertTrue(
interpreters.is_shareable(rch))
self.assertTrue(
interpreters.is_shareable(sch))

sch.send_nowait(rch)
sch.send_nowait(sch)
rch2 = rch.recv()
sch2 = rch.recv()

self.assertEqual(rch2, rch)
self.assertEqual(sch2, sch)


class TestRecvChannelAttrs(TestBase):

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy