Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13324 closed (fixed)

r12914 introduced test failure on 1.1.X branch

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


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/", 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/", line 0, in tests

File "/home/kmt/django/branch1.1.X/django/contrib/sessions/", line 53, in django.contrib.sessions.tests
Failed example:
Exception raised:
    Traceback (most recent call last):
      File "/home/kmt/django/branch1.1.X/django/test/", line 1267, in __run
        compileflags, 1) in test.globs
      File "<doctest django.contrib.sessions.tests[33]>", line 1, in <module>
      File "/home/kmt/django/branch1.1.X/django/db/models/", line 402, in delete
      File "/home/kmt/django/branch1.1.X/django/db/models/", line 1062, in delete_objects
      File "/home/kmt/django/branch1.1.X/django/db/models/sql/", 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/", line 56, in add
        obj, params = obj.process(lookup_type, value)
      File "/home/kmt/django/branch1.1.X/django/db/models/sql/", 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/", 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/", line 446, in get_db_prep_value
        return self.to_python(value)
      File "/home/kmt/django/branch1.1.X/django/db/models/fields/", 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 Changed 5 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to fixed
  • Status changed from new to closed

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 Changed 4 years ago by jacob

  • milestone 1.2 deleted

Milestone 1.2 deleted

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