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:
committed by
Jacob Walls
parent
6436ec3210
commit
9ba3f74a46
@@ -155,5 +155,3 @@ class DatabaseCreation(BaseDatabaseCreation):
|
|||||||
# connection.
|
# connection.
|
||||||
self.connection.connect()
|
self.connection.connect()
|
||||||
target_db.close()
|
target_db.close()
|
||||||
if os.environ.get("RUNNING_DJANGOS_TEST_SUITE") == "true":
|
|
||||||
self.mark_expected_failures_and_skips()
|
|
||||||
|
|||||||
@@ -473,6 +473,11 @@ def _init_worker(
|
|||||||
if value := serialized_contents.get(alias):
|
if value := serialized_contents.get(alias):
|
||||||
connection._test_serialized_contents = value
|
connection._test_serialized_contents = value
|
||||||
connection.creation.setup_worker_connection(_worker_id)
|
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:
|
if is_spawn_or_forkserver:
|
||||||
call_command(
|
call_command(
|
||||||
|
|||||||
Reference in New Issue
Block a user