diff test/test_mysql.py @ 2685:09651970063b

skip mysql backend tests on any MySQL error... ...raised from Database instantiation. (if the server is not available, MySQLdb raises OperationalError, not ProgrammingError.)
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 26 Sep 2004 11:30:56 +0000
parents 1a335e3c9589
children 91fdaaf8d929
line wrap: on
line diff
--- a/test/test_mysql.py	Sat Sep 25 16:14:32 2004 +0000
+++ b/test/test_mysql.py	Sun Sep 26 11:30:56 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 #
-# $Id: test_mysql.py,v 1.11 2004-09-25 15:49:31 a1s Exp $
+# $Id: test_mysql.py,v 1.12 2004-09-26 11:30:56 a1s Exp $
 
 import unittest, os, shutil, time, imp
 
@@ -84,7 +84,7 @@
         import MySQLdb
         db = mysql.Database(config, 'admin')
         db.close()
-    except (MySQLdb.ProgrammingError, DatabaseError), msg:
+    except (MySQLdb.MySQLError, DatabaseError), msg:
         print "Skipping mysql tests (%s)"%msg
     else:
         print 'Including mysql tests'

Roundup Issue Tracker: http://roundup-tracker.org/