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