Cleaned up error output a bit better so diagnosis of failing psycopg tests doesn't take quite so long to track down t configuration problems again.

This commit is contained in:
Ryan Williams
2010-05-24 19:05:14 -07:00
parent 065e8ee13d
commit 2e311eda63
2 changed files with 2 additions and 1 deletions

View File

@@ -191,6 +191,7 @@ def get_database_auth():
try:
import simplejson
except ImportError:
print "No simplejson, using baked-in db credentials."
return retval
if 'EVENTLET_DB_TEST_AUTH' in os.environ:

View File

@@ -50,5 +50,5 @@ class PatchingPsycopg(patcher_test.Patcher):
print "Can't test psycopg2 patching; it's not installed."
return
# if there's anything wrong with the test program it'll have a stack trace
self.assert_(lines[0].startswith('done'), repr(output))
self.assert_(lines[0].startswith('done'), output)