Opened 4 years ago

Closed 4 years ago

#16411 closed Bug (fixed)

Test failure after r16510

Reported by: jezdez Owned by: nobody
Component: Core (Cache system) Version: 1.3
Severity: Normal Keywords:
Cc: aaugustin 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 4 years ago by jezdez

In [16513]:

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

comment:2 Changed 4 years ago by aaugustin

  • Resolution set to fixed
  • Status changed from new to closed

The changes of r16510 were rolled back in r16515.

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