Skip to content

Commit 0808387

Browse files
committed
See if forced collection raises ResourceError earlier
1 parent 0863645 commit 0808387

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/tests/io/test_sql.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
datetime,
99
timedelta,
1010
)
11+
import gc
1112
from pathlib import Path
1213
import sqlite3
1314
from typing import TYPE_CHECKING
@@ -53,6 +54,12 @@
5354
]
5455

5556

57+
@pytest.fixture(autouse=True)
58+
def gc_collect():
59+
yield
60+
gc.collect()
61+
62+
5663
@pytest.fixture
5764
def sql_strings():
5865
return {

0 commit comments

Comments
 (0)