From f18cc0367e9d6d8ae960e9cd48645a5ca7b19cb4 Mon Sep 17 00:00:00 2001 From: "which.linden" Date: Mon, 4 Feb 2008 20:34:59 -0500 Subject: [PATCH] [svn r85] Minor bug in refactoring prevented db_pool_test from being run standalone on systems with MySQLdb installed. Also commented out the ab test cause finding the ab binary was not working most of the time, and when it was, it was spewing tons of output all over the place. --- eventlet/db_pool_test.py | 2 +- eventlet/httpd_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eventlet/db_pool_test.py b/eventlet/db_pool_test.py index ca057fe..df1a043 100644 --- a/eventlet/db_pool_test.py +++ b/eventlet/db_pool_test.py @@ -304,6 +304,6 @@ if __name__ == '__main__': except ImportError: print "Unable to import MySQLdb, skipping db_pool_test." else: - unittest.main() + tests.main() else: import MySQLdb diff --git a/eventlet/httpd_test.py b/eventlet/httpd_test.py index 85600fe..53b5aa9 100644 --- a/eventlet/httpd_test.py +++ b/eventlet/httpd_test.py @@ -129,7 +129,7 @@ class TestHttpd(tests.TestCase): self.assertRaises(ConnectionClosed, read_http, sock) sock.close() - def test_005_run_apachebench(self): + def skip_test_005_run_apachebench(self): url = 'http://localhost:12346/' # ab is apachebench out = processes.Process(tests.find_command('ab'),