diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-19 09:45:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 09:45:11 +0200 |
commit | 24effbceb871e71d3bc320b91252f743714722df (patch) | |
tree | 8ae179e06a61cbf6fbede16da0ca0fbddea4ab12 /tests/check_framework | |
parent | e59d1ff5627cf9cc551e160d65858a37693de4ed (diff) | |
download | django-24effbceb871e71d3bc320b91252f743714722df.tar.gz |
Fixed #33855 -- Removed unnecessary system check calls from test worker initialization.
Regression in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc.
Diffstat (limited to 'tests/check_framework')
-rw-r--r-- | tests/check_framework/tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/check_framework/tests.py b/tests/check_framework/tests.py index d064a7c403..f926308fd7 100644 --- a/tests/check_framework/tests.py +++ b/tests/check_framework/tests.py @@ -1,5 +1,7 @@ +import multiprocessing import sys from io import StringIO +from unittest import skipIf from django.apps import apps from django.core import checks @@ -361,6 +363,11 @@ class CheckFrameworkReservedNamesTests(SimpleTestCase): self.assertEqual(errors, expected) +@skipIf( + multiprocessing.get_start_method() == "spawn", + "Spawning reimports modules, overwriting my_check.did_run to False, making this " + "test useless.", +) class ChecksRunDuringTests(SimpleTestCase): databases = "__all__" |