File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
3
import contextlib
4
- from contextlib import closing
5
4
import csv
6
5
from datetime import (
7
6
date ,
@@ -2580,10 +2579,10 @@ def test_sql_open_close(test_frame3):
2580
2579
# between the writing and reading (as in many real situations).
2581
2580
2582
2581
with tm .ensure_clean () as name :
2583
- with closing (sqlite3 .connect (name )) as conn :
2582
+ with contextlib . closing (sqlite3 .connect (name )) as conn :
2584
2583
assert sql .to_sql (test_frame3 , "test_frame3_legacy" , conn , index = False ) == 4
2585
2584
2586
- with closing (sqlite3 .connect (name )) as conn :
2585
+ with contextlib . closing (sqlite3 .connect (name )) as conn :
2587
2586
result = sql .read_sql_query ("SELECT * FROM test_frame3_legacy;" , conn )
2588
2587
2589
2588
tm .assert_frame_equal (test_frame3 , result )
You can’t perform that action at this time.
0 commit comments