mirror of
https://github.com/django/django.git
synced 2025-10-07 01:00:47 +00:00
[4.1.x] Fixed #33855 -- Removed unnecessary system check calls from test worker initialization.
Regression in3b3f38b3b0
. Backport of24effbceb8
from main
This commit is contained in:
parent
0acaea1329
commit
710af68dee
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