Skip to content

Commit 13940c7

Browse files
authored
CI: close sockets in SQL tests (#35772)
1 parent 961b8d4 commit 13940c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/io/test_sql.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ def _get_all_tables(self):
263263
return table_list
264264

265265
def _close_conn(self):
266-
pass
266+
# https://docs.sqlalchemy.org/en/13/core/connections.html#engine-disposal
267+
self.conn.dispose()
267268

268269

269270
class PandasSQLTest:
@@ -1242,7 +1243,7 @@ class _TestSQLAlchemy(SQLAlchemyMixIn, PandasSQLTest):
12421243
def setup_class(cls):
12431244
cls.setup_import()
12441245
cls.setup_driver()
1245-
conn = cls.connect()
1246+
conn = cls.conn = cls.connect()
12461247
conn.connect()
12471248

12481249
def load_test_data_and_sql(self):

0 commit comments

Comments
 (0)