Skip to content

Instantly share code, notes, and snippets.

@ErinCall
Created April 30, 2013 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ErinCall/5490199 to your computer and use it in GitHub Desktop.
Save ErinCall/5490199 to your computer and use it in GitHub Desktop.
catsnap tests fail to tear down on postgresql 9.2
§ nosetests
..........................................................................................................................E
======================================================================
ERROR: test suite for <module 'tests' from '/Users/andrew/code/catsnap/tests/__init__.pyc'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/andrew/Envs/catsnap/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 227, in run
self.tearDown()
File "/Users/andrew/Envs/catsnap/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 350, in tearDown
self.teardownContext(ancestor)
File "/Users/andrew/Envs/catsnap/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/suite.py", line 366, in teardownContext
try_run(context, names)
File "/Users/andrew/Envs/catsnap/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/util.py", line 478, in try_run
return func()
File "/Users/andrew/code/catsnap/tests/__init__.py", line 54, in tearDownPackage
""" % db_info['temp_db_name'])
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/engine/base.py", line 1622, in execute
return connection.execute(statement, *multiparams, **params)
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/engine/base.py", line 664, in execute
params)
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/engine/base.py", line 808, in _execute_text
statement, parameters
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/engine/base.py", line 878, in _execute_context
context)
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/engine/base.py", line 871, in _execute_context
context)
File "build/bdist.macosx-10.8-intel/egg/sqlalchemy/engine/default.py", line 320, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (ProgrammingError) column "procpid" does not exist
LINE 2: select pg_terminate_backend( procpid )
^
"\n select pg_terminate_backend( procpid )\n from pg_stat_activity\n where datname = 'catsnap_test_1367341584'\n " {}
----------------------------------------------------------------------
Ran 122 tests in 1.833s
FAILED (errors=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment