mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Fixed #28795 -- Removed 'not in' checks and used dict.setdefault().
This commit is contained in:
parent
a2ec1e6b2d
commit
23bf4ad87f
13 changed files with 27 additions and 60 deletions
|
|
@ -455,8 +455,7 @@ if __name__ == "__main__":
|
|||
if options.settings:
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = options.settings
|
||||
else:
|
||||
if "DJANGO_SETTINGS_MODULE" not in os.environ:
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_sqlite'
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_sqlite')
|
||||
options.settings = os.environ['DJANGO_SETTINGS_MODULE']
|
||||
|
||||
if options.selenium:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue