Skip to content
Prev Previous commit
Next Next commit
import compat
  • Loading branch information
fangchenli committed Aug 27, 2021
commit fa7cd8ccd8c14a2c863d226c1e1de66b37e23d54
10 changes: 6 additions & 4 deletions pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2199,10 +2199,12 @@ def test_row_object_is_named_tuple(self):
Integer,
String,
)
from sqlalchemy.orm import (
declarative_base,
sessionmaker,
)
from sqlalchemy.orm import sessionmaker

if _gt14():
from sqlalchemy.orm import declarative_base
else:
from sqlalchemy.ext.declarative import declarative_base

BaseModel = declarative_base()

Expand Down