Opened 6 years ago

Last modified 6 years ago

#29906 closed Bug

`isinstance(django_settings, type)` triggers ImproperlyConfigured, although settings are not really accessed — at Initial Version

Reported by: Daniel Hahler Owned by: nobody
Component: Core (Other) Version: 2.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Checking if django.conf.settings is a class should not trigger an exception, but the following code triggers ImproperlyConfigured already:

`
from django.conf import settings as django_settings
isinstance(django_settings, type)
`

(via https://github.com/pytest-dev/pytest/issues/4266)

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top