Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Jan 26, 2024
1 parent 0f95a31 commit d5e692a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,17 @@ def iris_table_metadata():
import sqlalchemy
from sqlalchemy import (
Column,
Double,
Float,
MetaData,
String,
Table,
)

dtype = Double if Version(sqlalchemy.__version__) >= Version("2.0.0") else Float
if Version(sqlalchemy.__version__) >= Version("2.0.0"):
from sqlalchemy import Double as float_type
else:
from sqlalchemy import Float as float_type

dtype = float_type
metadata = MetaData()
iris = Table(
"iris",
Expand Down

0 comments on commit d5e692a

Please sign in to comment.