8000 TEST/FIX: do not try to delete a directory we do not know · larray-project/larray@2c37cb9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c37cb9

Browse files
committed
TEST/FIX: do not try to delete a directory we do not know
when _test_io raises, the fpath variable is not even declared so the "finally" clause fails
1 parent 6524323 commit 2c37cb9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

larray/tests/test_session.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,8 @@ def test_xlsx_xlwings_io(tmp_path, session, meta):
293293

294294

295295
def test_csv_io(tmp_path, session, meta):
296+
fpath = _test_io(tmp_path, session, meta, engine='pandas_csv', ext='csv')
296297
try:
297-
fpath = _test_io(tmp_path, session, meta, engine='pandas_csv', ext='csv')
298-
299298
names = Session({k: v for k, v in session.items() if isinstance(v, Array)}).names
300299

301300
# test loading with a pattern

0 commit comments

Comments
 (0)
0