#16645: OldFormForXTests.test_image_field fails under Oracle
-------------------------------------+---------------------------------
Reporter: aaugustin | Owner: nobody
Type: Bug | Status: new
Milestone: | Component: Forms
Version: 1.3 | Severity: Release blocker
Resolution: | Keywords: oracle
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+---------------------------------
Comment (by aaugustin):
The problem is in `modeltests/model_forms/tests.py`, in a test for
`ImageField`, at line 1320:
{{{
self.assertEqual(instance.image.name, None)
}}}
In the same file, there's an equivalent test for `FileField`, at line 1192
— but it's written slightly differently:
{{{
self.assertEqual(instance.file.name, '')
}}}
I suggest to make the test for `ImageField` similar to the test for
`FileField`. See attached patch.
With this patch, the tests still pass under SQLite, MySQL, PostgreSQL and
Oracle 10. I don't have access to Oracle 11, but it's very likely that the
change will fix the failing test; the CI will tell us.
--
Ticket URL: <https://code.djangoproject.com/ticket/16645#comment:4>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.