mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #33855 -- Removed unnecessary system check calls from test worker initialization.
Regression in 3b3f38b3b0
.
This commit is contained in:
parent
e59d1ff562
commit
24effbceb8
2 changed files with 8 additions and 8 deletions
|
@ -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__"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue