Tests fail for Django 1.9
See original GitHub issueI: pybuild base:184: python2.7 /usr/bin/py.test
/usr/lib/python2.7/dist-packages/django/db/models/fields/subclassing.py:22: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead.
RemovedInDjango110Warning)
============================= test session starts ==============================
platform linux2 -- Python 2.7.11, pytest-2.8.5, py-1.4.31, pluggy-0.3.1
rootdir: /«PKGBUILDDIR», inifile: setup.cfg
plugins: cov-2.2.0, django-2.9.1
collected 67 items
tests/test_autoslug_fields.py .........
tests/test_clean_pyc.py ...
tests/test_compile_pyc.py ..
tests/test_dumpscript.py ....
tests/test_encrypted_fields.py ssssssss
tests/test_json_field.py FFF
tests/test_management_command.py .....
tests/test_models.py ......
tests/test_randomchar_field.py ..........
tests/test_runscript.py ..
tests/test_shortuuid_field.py ....
tests/test_templatetags.py ..
tests/test_utils.py ....
tests/test_uuid_field.py .....
=================================== FAILURES ===================================
_____________________ JsonFieldTest.test_char_field_create _____________________
self = <tests.test_json_field.JsonFieldTest testMethod=test_char_field_create>
def test_char_field_create(self):
> j = JSONFieldTestModel.objects.create(a=6, j_field=dict(foo='bar'))
tests/test_json_field.py:8:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python2.7/dist-packages/django/db/models/manager.py:122: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/lib/python2.7/dist-packages/django/db/models/query.py:401: in create
obj.save(force_insert=True, using=self.db)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:700: in save
force_update=force_update, update_fields=update_fields)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:728: in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:812: in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:851: in _do_insert
using=using, raw=raw)
/usr/lib/python2.7/dist-packages/django/db/models/manager.py:122: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/lib/python2.7/dist-packages/django/db/models/query.py:1039: in _insert
return query.get_compiler(using=using).execute_sql(return_id)
/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py:1064: in execute_sql
cursor.execute(sql, params)
/usr/lib/python2.7/dist-packages/django/db/backends/utils.py:64: in execute
return self.cursor.execute(sql, params)
/usr/lib/python2.7/dist-packages/django/db/utils.py:97: in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
/usr/lib/python2.7/dist-packages/django/db/backends/utils.py:64: in execute
return self.cursor.execute(sql, params)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f81019bef28>
query = 'INSERT INTO "django_extensions_jsonfieldtestmodel" ("a", "j_field") VALUES (?, ?)'
params = [6, {"foo": "bar"}]
def execute(self, query, params=None):
if params is None:
return Database.Cursor.execute(self, query)
query = self.convert_query(query)
> return Database.Cursor.execute(self, query, params)
E InterfaceError: Error binding parameter 1 - probably unsupported type.
/usr/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py:323: InterfaceError
__________________________ JsonFieldTest.test_default __________________________
self = <tests.test_json_field.JsonFieldTest testMethod=test_default>
def test_default(self):
> j = JSONFieldTestModel.objects.create(a=1)
tests/test_json_field.py:13:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python2.7/dist-packages/django/db/models/manager.py:122: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/lib/python2.7/dist-packages/django/db/models/query.py:401: in create
obj.save(force_insert=True, using=self.db)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:700: in save
force_update=force_update, update_fields=update_fields)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:728: in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:812: in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:851: in _do_insert
using=using, raw=raw)
/usr/lib/python2.7/dist-packages/django/db/models/manager.py:122: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/lib/python2.7/dist-packages/django/db/models/query.py:1039: in _insert
return query.get_compiler(using=using).execute_sql(return_id)
/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py:1064: in execute_sql
cursor.execute(sql, params)
/usr/lib/python2.7/dist-packages/django/db/backends/utils.py:64: in execute
return self.cursor.execute(sql, params)
/usr/lib/python2.7/dist-packages/django/db/utils.py:97: in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
/usr/lib/python2.7/dist-packages/django/db/backends/utils.py:64: in execute
return self.cursor.execute(sql, params)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f810185ae90>
query = 'INSERT INTO "django_extensions_jsonfieldtestmodel" ("a", "j_field") VALUES (?, ?)'
params = [1, {}]
def execute(self, query, params=None):
if params is None:
return Database.Cursor.execute(self, query)
query = self.convert_query(query)
> return Database.Cursor.execute(self, query, params)
E InterfaceError: Error binding parameter 1 - probably unsupported type.
/usr/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py:323: InterfaceError
________________________ JsonFieldTest.test_empty_list _________________________
self = <tests.test_json_field.JsonFieldTest testMethod=test_empty_list>
def test_empty_list(self):
> j = JSONFieldTestModel.objects.create(a=6, j_field=[])
tests/test_json_field.py:17:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python2.7/dist-packages/django/db/models/manager.py:122: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/lib/python2.7/dist-packages/django/db/models/query.py:401: in create
obj.save(force_insert=True, using=self.db)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:700: in save
force_update=force_update, update_fields=update_fields)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:728: in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:812: in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
/usr/lib/python2.7/dist-packages/django/db/models/base.py:851: in _do_insert
using=using, raw=raw)
/usr/lib/python2.7/dist-packages/django/db/models/manager.py:122: in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
/usr/lib/python2.7/dist-packages/django/db/models/query.py:1039: in _insert
return query.get_compiler(using=using).execute_sql(return_id)
/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py:1064: in execute_sql
cursor.execute(sql, params)
/usr/lib/python2.7/dist-packages/django/db/backends/utils.py:64: in execute
return self.cursor.execute(sql, params)
/usr/lib/python2.7/dist-packages/django/db/utils.py:97: in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
/usr/lib/python2.7/dist-packages/django/db/backends/utils.py:64: in execute
return self.cursor.execute(sql, params)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f810185af28>
query = 'INSERT INTO "django_extensions_jsonfieldtestmodel" ("a", "j_field") VALUES (?, ?)'
params = [6, []]
def execute(self, query, params=None):
if params is None:
return Database.Cursor.execute(self, query)
query = self.convert_query(query)
> return Database.Cursor.execute(self, query, params)
E InterfaceError: Error binding parameter 1 - probably unsupported type.
/usr/lib/python2.7/dist-packages/django/db/backends/sqlite3/base.py:323: InterfaceError
================ 3 failed, 56 passed, 8 skipped in 1.36 seconds ================
E: pybuild pybuild:274: test: plugin custom failed with: exit code=1: python2.7 /usr/bin/py.test
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
25844 (django-1.9 fails test under pypy)
Yes, this error is related to parallel test running. To see the test failures you can use --parallel=1 or pip install tblib ....
Read more >Tests fail for Django 1.9 · Issue #270 - GitHub
Various errors, especially "RuntimeError: Model class tests.columns.test_filecolumn.FileModel doesn't declare an explicit app_label and either isn't in an ...
Read more >Tests fail with Django 1.9 - python-libs / passlib - GitLab
I've tracked down what changed in Django 1.9, and was able to get the tests to pass again. Outside of an import problem...
Read more >Django 1.9 unittest error for messages but i dont see the error ...
The test fails with the error in Django 1.9 env, but tests run perfectly well in 1.10.4 and 1.8. Can someone throw some...
Read more >Django 1.9 Mysterious Test Failure - Saul Shanabrook
This morning, I have been trying to upgrade my django-dumper library to work with Django 1.9. It started off pretty painlessly, but when...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll try to get a new release out soon.
New release is out on pypi: https://pypi.python.org/pypi/django-extensions/1.6.3
Please test since it’s a very big release.