#22715: Failing tests on Oracle/Python 3
-------------------------------------------+----------------------------
Reporter: timo | Owner: nobody
Type: Bug | Status: new
Component: Python 3 | Version: 1.7-beta-2
Severity: Release blocker | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+----------------------------
cx_Oracle 5.1.3 includes fixes the segfaults encountered with Python 3.
There are some failing migrations tests, all of which but 1 are resolved
with the attached patch.
Failing test:
{{{
======================================================================
ERROR: test_add_binaryfield (migrations.test_operations.OperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tim/code/django/django/db/backends/utils.py", line 63, in
execute
return self.cursor.execute(sql, params)
File "/home/tim/code/django/django/db/backends/oracle/base.py", line
890, in execute
return self.cursor.execute(query, self._param_generator(params))
cx_Oracle.DatabaseError: ORA-00984: column not allowed here
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tim/code/django/django/test/testcases.py", line 950, in
skip_wrapper
return test_func(*args, **kwargs)
File "/home/tim/code/django/tests/migrations/test_operations.py", line
458, in test_add_binaryfield
models.BinaryField(default=b'"\'"'),
File "/home/tim/code/django/tests/migrations/test_operations.py", line
32, in apply_operations
return migration.apply(project_state, editor)
File "/home/tim/code/django/django/db/migrations/migration.py", line
107, in apply
operation.database_forwards(self.app_label, schema_editor,
project_state, new_state)
File "/home/tim/code/django/django/db/migrations/operations/fields.py",
line 38, in database_forwards
field,
File "/home/tim/code/django/django/db/backends/schema.py", line 406, in
add_field
self.execute(sql, params)
File "/home/tim/code/django/django/db/backends/schema.py", line 98, in
execute
cursor.execute(sql, params)
File "/home/tim/code/django/django/db/backends/utils.py", line 63, in
execute
return self.cursor.execute(sql, params)
File "/home/tim/code/django/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/tim/code/django/django/utils/six.py", line 549, in reraise
raise value.with_traceback(tb)
File "/home/tim/code/django/django/db/backends/utils.py", line 63, in
execute
return self.cursor.execute(sql, params)
File "/home/tim/code/django/django/db/backends/oracle/base.py", line
890, in execute
return self.cursor.execute(query, self._param_generator(params))
django.db.utils.DatabaseError: ORA-00984: column not allowed here
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22715>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/047.dfb5eceffe97ae1fdac4cf624724be00%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.