| 22 | If the `apps.py` is there, but the `default_app_config` is in `__init__.py`, it fails too. |
| 23 | |
| 24 | {{{ |
| 25 | Traceback (most recent call last): |
| 26 | File "django/django/test/utils.py", line 381, in inner |
| 27 | return func(*args, **kwargs) |
| 28 | File "django/tests/apps/tests.py", line 541, in test_explicit_default_app_config_with_empty_apps |
| 29 | with self.settings(INSTALLED_APPS=['apps.explicit_default_config_with_empty_apps']): |
| 30 | File "django/django/test/utils.py", line 336, in __enter__ |
| 31 | return self.enable() |
| 32 | File "django/django/test/utils.py", line 410, in enable |
| 33 | apps.set_installed_apps(self.options['INSTALLED_APPS']) |
| 34 | File "django/django/apps/registry.py", line 355, in set_installed_apps |
| 35 | self.populate(installed) |
| 36 | File "django/django/apps/registry.py", line 91, in populate |
| 37 | app_config = AppConfig.create(entry) |
| 38 | File "django/django/apps/config.py", line 160, in create |
| 39 | if new_entry == app_config_name: |
| 40 | UnboundLocalError: local variable 'app_config_name' referenced before assignment |
| 41 | }}} |
| 42 | |