diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2025-10-28 11:21:52 +0100 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-10-28 10:55:49 -0400 |
| commit | 9ba3f74a46d15f9f2f45ad4ef8cdd245a888e58e (patch) | |
| tree | d23ae449df39a4f2d55e62b5f5fbb86b690e9df7 | |
| parent | 6436ec321073bf0622af815e0af08f54c97f9b30 (diff) | |
Fixed #36596 -- Made parallel test runner respect django_test_skips and django_test_expected_failures.
| -rw-r--r-- | django/db/backends/sqlite3/creation.py | 2 | ||||
| -rw-r--r-- | django/test/runner.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/django/db/backends/sqlite3/creation.py b/django/db/backends/sqlite3/creation.py index 8a07e0c417..d57bf9ee1f 100644 --- a/django/db/backends/sqlite3/creation.py +++ b/django/db/backends/sqlite3/creation.py @@ -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() diff --git a/django/test/runner.py b/django/test/runner.py index 41c9dbd10c..d0367ba71e 100644 --- a/django/test/runner.py +++ b/django/test/runner.py @@ -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( |
