File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -319,12 +319,12 @@ def test_read_infer_string(tmp_path, setup_path):
319
319
tm .assert_frame_equal (result , expected )
320
320
321
321
322
- def test_hdfstore_read_datetime64_unit_s ():
322
+ def test_hdfstore_read_datetime64_unit_s (tmp_path , setup_path ):
323
323
# Fix issue 59004: HDFStore doesn't save datetime64[s] right
324
324
df_s = DataFrame (["2001-01-01" , "2002-02-02" ], dtype = "datetime64[s]" )
325
- with HDFStore ("deleteme.h5" , mode = "w" ) as store :
325
+ path = tmp_path / setup_path
326
+ with HDFStore (path , mode = "w" ) as store :
326
327
store .put ("df_s" , df_s )
327
- with HDFStore ("deleteme.h5" , mode = "r" ) as store :
328
+ with HDFStore (path , mode = "r" ) as store :
328
329
df_fromstore = store .get ("df_s" )
329
330
tm .assert_frame_equal (df_s , df_fromstore )
330
- Path ("deleteme.h5" ).unlink () # Delete created file
You can’t perform that action at this time.
0 commit comments