Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#20724 closed Cleanup/optimization (fixed)

Failing transaction test with on-disk sqlite database

Reported by: Claude Paroz Owned by: nobody
Component: Testing framework Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

======================================================================
ERROR: test_commit (transactions_regress.tests.TestNewConnection)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/claude/checkouts/django-git/tests/transactions_regress/tests.py", line 226, in test_commit
    list(Mod.objects.all())
  File "/home/claude/checkouts/django-git/django/db/models/query.py", line 99, in __iter__
    self._fetch_all()
  File "/home/claude/checkouts/django-git/django/db/models/query.py", line 851, in _fetch_all
    self._result_cache = list(self.iterator())
  File "/home/claude/checkouts/django-git/django/db/models/query.py", line 223, in iterator
    for row in compiler.results_iter():
  File "/home/claude/checkouts/django-git/django/db/models/sql/compiler.py", line 711, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/home/claude/checkouts/django-git/django/db/models/sql/compiler.py", line 787, in execute_sql
    cursor.execute(sql, params)
  File "/home/claude/checkouts/django-git/django/db/utils.py", line 100, in inner
    return func(*args, **kwargs)
  File "/home/claude/checkouts/django-git/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/home/claude/checkouts/django-git/django/db/utils.py", line 100, in inner
    return func(*args, **kwargs)
  File "/home/claude/checkouts/django-git/django/db/backends/sqlite3/base.py", line 448, in execute
    return Database.Cursor.execute(self, query, params)
OperationalError: no such table: transactions_regress_mod

Change History (2)

comment:1 by Aymeric Augustin <aymeric.augustin@…>, 11 years ago

Resolution: fixed
Status: newclosed

In 404870ee1f0d15f6b81d0e0b059068b1f020b2f1:

Fixed #20724 -- Test failure on SQLite.

This test failure happened if the connection's NAME was set to a file
system path, and its TEST_NAME wasn't.

Thanks Claude for the report.

comment:2 by Aymeric Augustin <aymeric.augustin@…>, 11 years ago

In a2b4af3a1a145b8b0eb018e590f0beb0e428c5d2:

Fixed #20724 -- Test failure on SQLite.

This test failure happened if the connection's NAME was set to a file
system path, and its TEST_NAME wasn't.

Thanks Claude for the report.

Conflicts:

tests/transactions_regress/tests.py

Backport of 404870ee1f0d15f6b81d0e0b059068b1f020b2f1 from master.

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