summaryrefslogtreecommitdiff
path: root/tests/check_framework/tests.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-07-19 09:45:11 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-07-19 09:45:39 +0200
commit710af68dee4abaaec7a9817c0c44fe8782525d4e (patch)
treedec0f779148a5415cfaa242c1441a95ba1f95e5a /tests/check_framework/tests.py
parent0acaea1329e1b31d38dff2b58fc9088814981e0d (diff)
[4.1.x] Fixed #33855 -- Removed unnecessary system check calls from test worker initialization.
Regression in 3b3f38b3b09b0f2373e51406ecb8c9c45d36aebc. Backport of 24effbceb871e71d3bc320b91252f743714722df from main
Diffstat (limited to 'tests/check_framework/tests.py')
-rw-r--r--tests/check_framework/tests.py7
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__"