From 66d62e31e93440e0745f9628217ad4e60981b746 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Fri, 8 May 2026 11:55:08 +0200 Subject: [PATCH] [GR-54573] Re-enable multiprocessing typed test generation --- .../3/test/_test_multiprocessing.py | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/graalpython/lib-python/3/test/_test_multiprocessing.py b/graalpython/lib-python/3/test/_test_multiprocessing.py index cd2300ea3c..2903cb25b5 100644 --- a/graalpython/lib-python/3/test/_test_multiprocessing.py +++ b/graalpython/lib-python/3/test/_test_multiprocessing.py @@ -6533,19 +6533,16 @@ def install_tests_in_module_dict(remote_globs, start_method, continue if exclude_types: continue - # Begin Truffle change - # multiprocessing manager not supported - # newname = 'With' + type_.capitalize() + name[1:] - # Mixin = local_globs[type_.capitalize() + 'Mixin'] - # class Temp(base, Mixin, unittest.TestCase): - # pass - # if type_ == 'manager': - # Temp = hashlib_helper.requires_hashdigest('sha256')(Temp) - # Temp.__name__ = Temp.__qualname__ = newname - # Temp.__module__ = __module__ - # Temp.start_method = start_method - # remote_globs[newname] = Temp - # End Truffle change + newname = 'With' + type_.capitalize() + name[1:] + Mixin = local_globs[type_.capitalize() + 'Mixin'] + class Temp(base, Mixin, unittest.TestCase): + pass + if type_ == 'manager': + Temp = hashlib_helper.requires_hashdigest('sha256')(Temp) + Temp.__name__ = Temp.__qualname__ = newname + Temp.__module__ = __module__ + Temp.start_method = start_method + remote_globs[newname] = Temp elif issubclass(base, unittest.TestCase): if only_type: continue