mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-11 12:10:59 +08:00
TST: Skip on OperationalError for newer pandas versions
This commit is contained in:
+4
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user