Opened 13 years ago

Closed 13 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

Description

http://ci.django-cms.org/job/Django/database=postgres,python=python2.7/101/testReport/regressiontests.cache.tests/CreateCacheTableForDBCacheTests/test_createcachetable_observes_database_router/

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 "runtests.py", line 332, in <module>
    failures = django_tests(int(options.verbosity), options.interactive, options.failfast, args)
  File "runtests.py", line 199, in django_tests
    failures = test_runner.run_tests(test_labels, extra_tests=extra_tests)
  File "/Users/jezdez/Code/git/django/django/test/simple.py", line 356, in run_tests
    self.teardown_databases(old_config)
  File "/Users/jezdez/Code/git/django/django/test/simple.py", line 322, in teardown_databases
    connection.creation.destroy_test_db(old_name, self.verbosity)
  File "/Users/jezdez/Code/git/django/django/db/backends/creation.py", line 331, in destroy_test_db
    self._destroy_test_db(test_database_name, verbosity)
  File "/Users/jezdez/Code/git/django/django/db/backends/creation.py", 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/base.py", 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 by Jannis Leidel, 13 years ago

In [16513]:

(The changeset message doesn't reference this ticket)

comment:2 by Aymeric Augustin, 13 years ago

Resolution: fixed
Status: newclosed

The changes of r16510 were rolled back in r16515.

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