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:
@@ -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:
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user