Opened 16 years ago
Closed 16 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: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
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 "runtests.py", line 191, in <module>
django_tests(int(options.verbosity), options.interactive, args)
File "runtests.py", 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/simple.py", line 191, in run_tests
connection.creation.create_test_db(verbosity, autoclobber=not interactive)
File "/usr/lib/python2.5/site-packages/django/db/backends/creation.py", line 332, in create_test_db
can_rollback = self._rollback_works()
File "/usr/lib/python2.5/site-packages/django/db/backends/creation.py", line 393, in _rollback_works
self.connection._rollback()
TypeError: _new_rollback() takes exactly 1 argument (0 given)
Note:
See TracTickets
for help on using tickets.
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.