From 2e311eda6328c4b672135f8c7a7f33df8cf67636 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Mon, 24 May 2010 19:05:14 -0700 Subject: [PATCH] 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. --- tests/__init__.py | 1 + tests/patcher_psycopg_test.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/__init__.py b/tests/__init__.py index 6349a96..5884f09 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -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: diff --git a/tests/patcher_psycopg_test.py b/tests/patcher_psycopg_test.py index f63801e..47a3044 100644 --- a/tests/patcher_psycopg_test.py +++ b/tests/patcher_psycopg_test.py @@ -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)