[Django] #20906: Test failure on Oracle: test_lookup_with_non_string_value

3 views
Skip to first unread message

Django

unread,
Aug 12, 2013, 9:29:59 PM8/12/13
to django-...@googlegroups.com
#20906: Test failure on Oracle: test_lookup_with_non_string_value
----------------------------------------------+--------------------
Reporter: shai | Owner: nobody
Type: Bug | Status: new
Component: Database layer (models, ORM) | Version: 1.4
Severity: Normal | Keywords: oracle
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
Running tests on updated stable/1.4.x:
{{{

FAIL: test_lookup_with_non_string_value
(regressiontests.admin_filters.tests.ListFiltersTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/django/django/tests/regressiontests/admin_filters/tests.py",
line 685, in test_lookup_with_non_string_value
self.assertEqual(choices[2]['display'], u'DEV')
AssertionError: u'DSN' != u'DEV'
- DSN
+ DEV
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/20906>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 16, 2013, 12:43:55 PM8/16/13
to django-...@googlegroups.com
#20906: Test failure on Oracle: test_lookup_with_non_string_value
-------------------------------------+-------------------------------------

Reporter: shai | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.4
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: oracle | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by timo):

* needs_docs: => 0
* has_patch: 0 => 1
* needs_better_patch: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted


Comment:

I can't reproduce this on my Oracle setup -- it looks like it may be
dependent on Python version (set ordering). It may be fixed if we backport
[1ae64e96] (looks like 1.5 doesn't have the fix either though). Could you
confirm?

--
Ticket URL: <https://code.djangoproject.com/ticket/20906#comment:1>

Django

unread,
Aug 16, 2013, 3:18:51 PM8/16/13
to django-...@googlegroups.com
#20906: Test failure on Oracle: test_lookup_with_non_string_value
-------------------------------------+-------------------------------------

Reporter: shai | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.4
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: oracle | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by timo):

Actually I can reproduce if I run the entire test suite instead of just
the `admin_filters` app. Testing if backporting the above commit (which I
now see was backported to 1.5.x) solves the issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/20906#comment:2>

Django

unread,
Aug 16, 2013, 5:56:24 PM8/16/13
to django-...@googlegroups.com
#20906: Test failure on Oracle: test_lookup_with_non_string_value
-------------------------------------+-------------------------------------
Reporter: shai | Owner: nobody
Type: Bug | Status: closed

Component: Database layer | Version: 1.4
(models, ORM) | Resolution: fixed

Severity: Normal | Triage Stage: Accepted
Keywords: oracle | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"d5da495a2edc741b6496821baa0d6bcee9dce9bb"]:
{{{
#!CommitTicketReference repository=""
revision="d5da495a2edc741b6496821baa0d6bcee9dce9bb"
[1.4.x] Fixed #20906 -- Fixed a dependence on set-ordering in tests

Backport of 1ae64e96c1 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/20906#comment:3>

Reply all
Reply to author
Forward
0 new messages