1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Fixed #36531 -- Added forkserver support to parallel test runner.

This commit is contained in:
Mariusz Felisiak
2025-07-28 23:21:17 +02:00
committed by nessita
parent d4dd3e503c
commit d55979334d
5 changed files with 29 additions and 14 deletions

View File

@@ -36,8 +36,8 @@ class TestDbSignatureTests(SimpleTestCase):
clone_settings_dict = creation_class.get_test_db_clone_settings("1")
self.assertEqual(clone_settings_dict["NAME"], expected_clone_name)
@mock.patch.object(multiprocessing, "get_start_method", return_value="forkserver")
@mock.patch.object(multiprocessing, "get_start_method", return_value="unsupported")
def test_get_test_db_clone_settings_not_supported(self, *mocked_objects):
msg = "Cloning with start method 'forkserver' is not supported."
msg = "Cloning with start method 'unsupported' is not supported."
with self.assertRaisesMessage(NotSupportedError, msg):
connection.creation.get_test_db_clone_settings(1)