You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the above test will blow up here with the error TypeError: 'bool' object is not iterable. This makes sense, looking at the code:
try:
# When called from SimpleTestCase.setUpClass, values may be# overridden several times; cumulate changes.value=self.options[name]
exceptKeyError:
value=list(getattr(settings, name, [])) # <-- Boom!
In that context, getattr(settings, name, …) gets the value of MyConfiguration.DEBUG, which is False.
The text was updated successfully, but these errors were encountered:
Running the above test will blow up here with the error
TypeError: 'bool' object is not iterable
. This makes sense, looking at the code:In that context,
getattr(settings, name, …)
gets the value ofMyConfiguration.DEBUG
, which isFalse
.The text was updated successfully, but these errors were encountered: