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:
|
try:
|
||||||
import simplejson
|
import simplejson
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
print "No simplejson, using baked-in db credentials."
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
if 'EVENTLET_DB_TEST_AUTH' in os.environ:
|
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."
|
print "Can't test psycopg2 patching; it's not installed."
|
||||||
return
|
return
|
||||||
# if there's anything wrong with the test program it'll have a stack trace
|
# 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