Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#13324 closed (fixed)

r12914 introduced test failure on 1.1.X branch

Reported by: Karen Tracey Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

r12914 introduced a failure in the sessions test on the 1.1.X branch:

No fixtures found.
Doctest: django.contrib.sessions.tests ... FAIL

======================================================================
FAIL: Doctest: django.contrib.sessions.tests
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kmt/django/branch1.1.X/django/test/_doctest.py", line 2180, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for django.contrib.sessions.tests
  File "/home/kmt/django/branch1.1.X/django/contrib/sessions/tests.py", line 0, in tests

----------------------------------------------------------------------
File "/home/kmt/django/branch1.1.X/django/contrib/sessions/tests.py", line 53, in django.contrib.sessions.tests
Failed example:
    Session.objects.filter(pk=db_session.session_key).delete()
Exception raised:
    Traceback (most recent call last):
      File "/home/kmt/django/branch1.1.X/django/test/_doctest.py", line 1267, in __run
        compileflags, 1) in test.globs
      File "<doctest django.contrib.sessions.tests[33]>", line 1, in <module>
        Session.objects.filter(pk=db_session.session_key).delete()
      File "/home/kmt/django/branch1.1.X/django/db/models/query.py", line 402, in delete
        delete_objects(seen_objs)
      File "/home/kmt/django/branch1.1.X/django/db/models/query.py", line 1062, in delete_objects
        del_query.delete_batch(pk_list)
      File "/home/kmt/django/branch1.1.X/django/db/models/sql/subqueries.py", line 91, in delete_batch
        pk_list[offset : offset + GET_ITERATOR_CHUNK_SIZE]), AND)
      File "/home/kmt/django/branch1.1.X/django/db/models/sql/where.py", line 56, in add
        obj, params = obj.process(lookup_type, value)
      File "/home/kmt/django/branch1.1.X/django/db/models/sql/where.py", line 277, in process
        params = self.field.get_db_prep_lookup(lookup_type, value)
      File "/home/kmt/django/branch1.1.X/django/db/models/fields/__init__.py", line 222, in get_db_prep_lookup
        return [self.get_db_prep_value(v) for v in value]
      File "/home/kmt/django/branch1.1.X/django/db/models/fields/__init__.py", line 446, in get_db_prep_value
        return self.to_python(value)
      File "/home/kmt/django/branch1.1.X/django/db/models/fields/__init__.py", line 442, in to_python
        ugettext_lazy("This field cannot be null."))
    ValidationError: <django.utils.functional.__proxy__ object at 0x8a5492c>


----------------------------------------------------------------------
Ran 1 test in 0.261s

FAILED (failures=1)
Destroying test database...

Change History (2)

comment:1 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

Turns out this was a problem because r12941 wasn't backported. I've backported it in r12955, and I'm no longer seeing the failure.

comment:2 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top