Opened 8 years ago

Closed 8 years ago

#16411 closed Bug (fixed)

Test failure after r16510

Reported by: Jannis Leidel Owned by: nobody
Component: Core (Cache system) Version: 1.3
Severity: Normal Keywords:
Cc: Aymeric Augustin Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The postgres tests seem to fail after the addition. Ironically they pass for me but give a different message locally:

Traceback (most recent call last):
  File "", line 332, in <module>
    failures = django_tests(int(options.verbosity), options.interactive, options.failfast, args)
  File "", line 199, in django_tests
    failures = test_runner.run_tests(test_labels, extra_tests=extra_tests)
  File "/Users/jezdez/Code/git/django/django/test/", line 356, in run_tests
  File "/Users/jezdez/Code/git/django/django/test/", line 322, in teardown_databases
    connection.creation.destroy_test_db(old_name, self.verbosity)
  File "/Users/jezdez/Code/git/django/django/db/backends/", line 331, in destroy_test_db
    self._destroy_test_db(test_database_name, verbosity)
  File "/Users/jezdez/Code/git/django/django/db/backends/", line 342, in _destroy_test_db
    cursor.execute("DROP DATABASE %s" % self.connection.ops.quote_name(test_database_name))
  File "/Users/jezdez/Code/git/django/django/db/backends/postgresql_psycopg2/", line 44, in execute
    return self.cursor.execute(query, args)
django.db.utils.DatabaseError: database "test_django_testing" is being accessed by other users
DETAIL:  There are 1 other session(s) using the database.

Change History (2)

comment:1 Changed 8 years ago by Jannis Leidel

In [16513]:

Made cache table test case multidb capable. Refs #16411. Thanks, Russ.

comment:2 Changed 8 years ago by Aymeric Augustin

Resolution: fixed
Status: newclosed

The changes of r16510 were rolled back in r16515.

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