I just migrated the database of my django project from mysql to  
postgresql. Tested with the development server, the application seems  
to run fine, but if I run my test suite, the psycopg2 driver fails  
before the first test passes.

        psycopg2.InterfaceError: connection already closed

I'm running trunk [6669], PostgreSQL 8.1.8, Python 2.4.3, psycopg2  
2.0.5.1

        ./manage.py testserver

runs fine, as does syncdb and loading my test fixtures into a fresh  
database.

Are there any known issues? I've no idea where to start looking for  
the problem.

-- erik



Type 'yes' if you would like to try deleting the test database  
'test_samobjects2', or 'no' to cancel: yes
Traceback (most recent call last):
   File "./manage.py", line 11, in ?
     execute_manager(settings)
   File "/Users/erik/Developer/src/django/trunk/django/core/ 
management/__init__.py", line 277, in execute_manager
     utility.execute()
   File "/Users/erik/Developer/src/django/trunk/django/core/ 
management/__init__.py", line 225, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/Users/erik/Developer/src/django/trunk/django/core/ 
management/base.py", line 70, in run_from_argv
     self.execute(*args, **options.__dict__)
   File "/Users/erik/Developer/src/django/trunk/django/core/ 
management/base.py", line 84, in execute
     output = self.handle(*args, **options)
   File "/Users/erik/Developer/src/django/trunk/django/core/ 
management/commands/test.py", line 34, in handle
     failures = test_runner(test_labels, verbosity=verbosity,  
interactive=interactive)
   File "/Users/erik/Developer/src/django/trunk/django/test/ 
simple.py", line 143, in run_tests
     result = unittest.TextTestRunner(verbosity=verbosity).run(suite)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/unittest.py", line 696, in run
     test(result)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/unittest.py", line 428, in __call__
     return self.run(*args, **kwds)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/unittest.py", line 424, in run
     test(result)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/unittest.py", line 428, in __call__
     return self.run(*args, **kwds)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/unittest.py", line 424, in run
     test(result)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/unittest.py", line 428, in __call__
     return self.run(*args, **kwds)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/unittest.py", line 424, in run
     test(result)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/unittest.py", line 428, in __call__
     return self.run(*args, **kwds)
   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/ 
lib/python2.4/unittest.py", line 424, in run
     test(result)
   File "/Users/erik/Developer/src/django/trunk/django/test/ 
testcases.py", line 73, in __call__
     self._pre_setup()
   File "/Users/erik/Developer/src/django/trunk/django/test/ 
testcases.py", line 59, in _pre_setup
     call_command('flush', verbosity=0, interactive=False)
   File "/Users/erik/Developer/src/django/trunk/django/core/ 
management/__init__.py", line 127, in call_command
     return klass.execute(*args, **options)
   File "/Users/erik/Developer/src/django/trunk/django/core/ 
management/base.py", line 84, in execute
     output = self.handle(*args, **options)
   File "/Users/erik/Developer/src/django/trunk/django/core/ 
management/base.py", line 166, in handle
     return self.handle_noargs(**options)
   File "/Users/erik/Developer/src/django/trunk/django/core/ 
management/commands/flush.py", line 52, in handle_noargs
     transaction.rollback_unless_managed()
   File "/Users/erik/Developer/src/django/trunk/django/db/ 
transaction.py", line 145, in rollback_unless_managed
     connection._rollback()
   File "/Users/erik/Developer/src/django/trunk/django/db/backends/ 
__init__.py", line 24, in _rollback
     return self.connection.rollback()
psycopg2.InterfaceError: connection already closed




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to