Control: tag -1 + confirmed
The package fails to build with Django 1.7:
debian/rules override_dh_auto_test
make[1]: Entering directory '/«PKGBUILDDIR»'
# Explicitely enumerate tests to avoid import error when
# building with svn-buildpackage, where tests will be run
# inside folder that isn't a python module, like: ERROR:
# django-ldapdb-0.2.0.examples.tests
# (unittest2.loader.ModuleImportFailure)
# django-admin test --settings=settings --pythonpath=.
django-admin test --settings=settings --pythonpath=. examples.tests ldapdb.tests
System check identified some issues:
[...]
WARNINGS:
?: (1_6.W001) Some project unittests may not execute as expected.
HINT: Django 1.6 introduced a new default test runner. It looks like
this project was generated using Django 1.5 or earlier. You sho
uld ensure your tests are all running & behaving as expected. See
https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runner for mo
re information.
Traceback (most recent call last):
File "/usr/bin/django-admin", line 27, in <module>
management.execute_from_command_line()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 385, in execute_from_command_line
Using: Python 2.7
Creating test database for alias 'default'...
utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 377, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/usr/lib/python2.7/dist-packages/django/core/management/commands/test.py",
line 50, in run_from_argv
super(Command, self).run_from_argv(argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
288, in run_from_argv
self.execute(*args, **options.__dict__)
File
"/usr/lib/python2.7/dist-packages/django/core/management/commands/test.py",
line 71, in execute
super(Command, self).execute(*args, **options)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line
337, in execute
output = self.handle(*args, **options)
File
"/usr/lib/python2.7/dist-packages/django/core/management/commands/test.py",
line 88, in handle
failures = test_runner.run_tests(test_labels)
File "/usr/lib/python2.7/dist-packages/django/test/runner.py", line 147, in
run_tests
old_config = self.setup_databases()
File "/usr/lib/python2.7/dist-packages/django/test/runner.py", line 109, in
setup_databases
return setup_databases(self.verbosity, self.interactive, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/test/runner.py", line 299, in
setup_databases
serialize=connection.settings_dict.get("TEST_SERIALIZE", True),
TypeError: create_test_db() got an unexpected keyword argument 'serialize'
make[1]: *** [override_dh_auto_test] Error 1
See https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runner for a
way to continue
to use the old test runner. Alternatively you could fix the code to work with
the new test runner.
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]