Opened 9 years ago

Closed 9 years ago

#12029 closed (worksforme)

Error when running django tests with postgresql 8.3

Reported by: Manuel Saelices Owned by: nobody
Component: Testing framework 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:


I followed running Django tests wiki?, but with postgresql_psycopg2 as database backend. I've get an error on [11620] Django revision.

The error was this:

Creating test database...
Traceback (most recent call last):
  File "", line 191, in <module>
    django_tests(int(options.verbosity), options.interactive, args)
  File "", line 161, in django_tests
    failures = test_runner(test_labels, verbosity=verbosity, interactive=interactive, extra_tests=extra_tests)
  File "/usr/lib/python2.5/site-packages/django/test/", line 191, in run_tests
    connection.creation.create_test_db(verbosity, autoclobber=not interactive)
  File "/usr/lib/python2.5/site-packages/django/db/backends/", line 332, in create_test_db
    can_rollback = self._rollback_works()
  File "/usr/lib/python2.5/site-packages/django/db/backends/", line 393, in _rollback_works
TypeError: _new_rollback() takes exactly 1 argument (0 given)

Change History (1)

comment:1 Changed 9 years ago by Russell Keith-Magee

Resolution: worksforme
Status: newclosed

Works fine for me, using Postgres 8.3.1, psycopg2 2.0.7, under OSX 10.5.

Based on the error, I'm guessing this is a psycopg2 problem - if you can provide more details of your specific failing environment, feel free to reopen.

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