diff options
Diffstat (limited to 'tests/check_framework/tests.py')
| -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__" |
