update envguard import

This commit is contained in:
Matthias 2022-05-16 16:41:00 +02:00
parent 7e6d3d81b9
commit b630fb2856
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -1,5 +1,6 @@
import json import json
from test.support import EnvironmentVarGuard
from test import support
from django.test import TestCase, override_settings from django.test import TestCase, override_settings
import django.core.exceptions as django_exceptions import django.core.exceptions as django_exceptions
@ -449,7 +450,7 @@ class TestSettings(TestCase):
def setUp(self) -> None: def setUp(self) -> None:
self.user_mdl = get_user_model() self.user_mdl = get_user_model()
self.env = EnvironmentVarGuard() self.env = support.EnvironmentVarGuard()
def run_reload(self): def run_reload(self):
from plugin import registry from plugin import registry