|
26 | 26 | import test.support |
27 | 27 | import test.support.script_helper |
28 | 28 | from test import support |
| 29 | +from test.support import hashlib_helper |
29 | 30 | from test.support import socket_helper |
30 | 31 |
|
31 | 32 |
|
@@ -2953,6 +2954,8 @@ def test_remote(self): |
2953 | 2954 | # Make queue finalizer run before the server is stopped |
2954 | 2955 | del queue |
2955 | 2956 |
|
| 2957 | + |
| 2958 | +@hashlib_helper.requires_hashdigest('md5') |
2956 | 2959 | class _TestManagerRestart(BaseTestCase): |
2957 | 2960 |
|
2958 | 2961 | @classmethod |
@@ -3437,6 +3440,7 @@ def test_dont_merge(self): |
3437 | 3440 | # |
3438 | 3441 |
|
3439 | 3442 | @unittest.skipUnless(HAS_REDUCTION, "test needs multiprocessing.reduction") |
| 3443 | +@hashlib_helper.requires_hashdigest('md5') |
3440 | 3444 | class _TestPicklingConnections(BaseTestCase): |
3441 | 3445 |
|
3442 | 3446 | ALLOWED_TYPES = ('processes',) |
@@ -3739,6 +3743,7 @@ def test_copy(self): |
3739 | 3743 |
|
3740 | 3744 |
|
3741 | 3745 | @unittest.skipUnless(HAS_SHMEM, "requires multiprocessing.shared_memory") |
| 3746 | +@hashlib_helper.requires_hashdigest('md5') |
3742 | 3747 | class _TestSharedMemory(BaseTestCase): |
3743 | 3748 |
|
3744 | 3749 | ALLOWED_TYPES = ('processes',) |
@@ -4414,6 +4419,7 @@ def test_invalid_handles(self): |
4414 | 4419 |
|
4415 | 4420 |
|
4416 | 4421 |
|
| 4422 | +@hashlib_helper.requires_hashdigest('md5') |
4417 | 4423 | class OtherTest(unittest.TestCase): |
4418 | 4424 | # TODO: add more tests for deliver/answer challenge. |
4419 | 4425 | def test_deliver_challenge_auth_failure(self): |
@@ -4450,6 +4456,7 @@ def send_bytes(self, data): |
4450 | 4456 | def initializer(ns): |
4451 | 4457 | ns.test += 1 |
4452 | 4458 |
|
| 4459 | +@hashlib_helper.requires_hashdigest('md5') |
4453 | 4460 | class TestInitializers(unittest.TestCase): |
4454 | 4461 | def setUp(self): |
4455 | 4462 | self.mgr = multiprocessing.Manager() |
@@ -5304,6 +5311,7 @@ def is_alive(self): |
5304 | 5311 | any(process.is_alive() for process in forked_processes)) |
5305 | 5312 |
|
5306 | 5313 |
|
| 5314 | +@hashlib_helper.requires_hashdigest('md5') |
5307 | 5315 | class TestSyncManagerTypes(unittest.TestCase): |
5308 | 5316 | """Test all the types which can be shared between a parent and a |
5309 | 5317 | child process by using a manager which acts as an intermediary |
@@ -5698,6 +5706,8 @@ def install_tests_in_module_dict(remote_globs, start_method): |
5698 | 5706 | Mixin = local_globs[type_.capitalize() + 'Mixin'] |
5699 | 5707 | class Temp(base, Mixin, unittest.TestCase): |
5700 | 5708 | pass |
| 5709 | + if type_ == 'manager': |
| 5710 | + Temp = hashlib_helper.requires_hashdigest('md5')(Temp) |
5701 | 5711 | Temp.__name__ = Temp.__qualname__ = newname |
5702 | 5712 | Temp.__module__ = __module__ |
5703 | 5713 | remote_globs[newname] = Temp |
|
0 commit comments