TST: Skip on OperationalError for newer pandas versions

This commit is contained in:
Kelsey Jordahl
2014-07-12 10:34:58 -05:00
parent 8657684580
commit 3c3518b6c9
+4 -1
View File
@@ -88,7 +88,10 @@ def create_db(df):
if con is None:
return False
if PANDAS_NEW_SQL_API:
con = con.connect()
try:
con = con.connect()
except OperationalError:
raise unittest.case.SkipTest()
else:
con = con.cursor()