mirror of
https://github.com/django/django.git
synced 2025-01-27 10:39:40 +00:00
Updated obsolete comment.
This commit is contained in:
parent
40c60efecc
commit
4832320e8d
@ -231,7 +231,7 @@ class modify_settings(override_settings):
|
|||||||
"""
|
"""
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
if args:
|
if args:
|
||||||
# Hack used when instantiating from SimpleTestCase._pre_setup.
|
# Hack used when instantiating from SimpleTestCase.setUpClass.
|
||||||
assert not kwargs
|
assert not kwargs
|
||||||
self.operations = args[0]
|
self.operations = args[0]
|
||||||
else:
|
else:
|
||||||
@ -250,7 +250,7 @@ class modify_settings(override_settings):
|
|||||||
self.options = {}
|
self.options = {}
|
||||||
for name, operations in self.operations:
|
for name, operations in self.operations:
|
||||||
try:
|
try:
|
||||||
# When called from SimpleTestCase._pre_setup, values may be
|
# When called from SimpleTestCase.setUpClass, values may be
|
||||||
# overridden several times; cumulate changes.
|
# overridden several times; cumulate changes.
|
||||||
value = self.options[name]
|
value = self.options[name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user