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 /django/test | |
| parent | 6436ec321073bf0622af815e0af08f54c97f9b30 (diff) | |
Fixed #36596 -- Made parallel test runner respect django_test_skips and django_test_expected_failures.
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/runner.py | 5 |
1 files changed, 5 insertions, 0 deletions
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( |
