Control: tag -1 + confirmed
The package fails to build with Django 1.7:
debian/rules override_dh_auto_test
make[1]: Entering directory '/«PKGBUILDDIR»'
python2.7 tests/runtests.py
Traceback (most recent call last):
File "tests/runtests.py", line 62, in <module>
run_tests()
File "tests/runtests.py", line 28, in run_tests
autoclobber=not interactive)
File "/usr/lib/python2.7/dist-packages/django/db/backends/creation.py", line
374, in create_test_db
Creating test database for alias 'default'...
test_flush=True,
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 93, in call_command
app_name = get_commands()[name]
File "/usr/lib/python2.7/dist-packages/django/utils/lru_cache.py", line 101,
in wrapper
result = user_function(*args, **kwds)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 73, in get_commands
for app_config in reversed(list(apps.get_app_configs())):
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 137, in
get_app_configs
self.check_apps_ready()
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 124, in
check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
make[1]: *** [test-python2.7] Error 1
You need to add something like this in your test script (to go past this error):
import django
if hasattr(django, 'setup'):
django.setup()
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]