1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #36596 -- Made parallel test runner respect django_test_skips and django_test_expected_failures.

This commit is contained in:
Mariusz Felisiak
2025-10-28 11:21:52 +01:00
committed by Jacob Walls
parent 6436ec3210
commit 9ba3f74a46
2 changed files with 5 additions and 2 deletions

View File

@@ -155,5 +155,3 @@ class DatabaseCreation(BaseDatabaseCreation):
# connection.
self.connection.connect()
target_db.close()
if os.environ.get("RUNNING_DJANGOS_TEST_SUITE") == "true":
self.mark_expected_failures_and_skips()

View File

@@ -473,6 +473,11 @@ def _init_worker(
if value := serialized_contents.get(alias):
connection._test_serialized_contents = value
connection.creation.setup_worker_connection(_worker_id)
if (
is_spawn_or_forkserver
and os.environ.get("RUNNING_DJANGOS_TEST_SUITE") == "true"
):
connection.creation.mark_expected_failures_and_skips()
if is_spawn_or_forkserver:
call_command(