This restores their shareability, which was disabled by gh-110318 due to ref leaks.
# XXX This is causing leaks (gh-110318):
-#_channels._register_end_types(SendChannel, RecvChannel)
+_channels._register_end_types(SendChannel, RecvChannel)
after = set(interpreters.list_all_channels())
self.assertEqual(after, created)
- @unittest.expectedFailure # See gh-110318:
def test_shareable(self):
rch, sch = interpreters.create_channel()
static int
traverse_module_state(module_state *state, visitproc visit, void *arg)
{
+ /* external types */
+ Py_VISIT(state->send_channel_type);
+ Py_VISIT(state->recv_channel_type);
+
/* heap types */
Py_VISIT(state->ChannelInfoType);
Py_VISIT(state->ChannelIDType);