From 3c3518b6c9ae83d75c95bd9f1f9fe7322aaad4dd Mon Sep 17 00:00:00 2001 From: Kelsey Jordahl Date: Sat, 12 Jul 2014 10:34:58 -0500 Subject: [PATCH] TST: Skip on OperationalError for newer pandas versions --- tests/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/util.py b/tests/util.py index 2c002cb..c1a0809 100644 --- a/tests/util.py +++ b/tests/util.py @@ -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()