@@ -299,6 +299,13 @@ def test_keys(self, setup_path):
299299 assert set (store .keys ()) == expected
300300 assert set (store ) == expected
301301
302+ @pytest .mark .skipif (
303+ LooseVersion (tables .__version__ ) < LooseVersion ("3.4.3" ),
304+ reason = (
305+ "Skipping pytables test when tables version is "
306+ "lower than 3.4.3"
307+ ),
308+ )
302309 def test_no_track_times (self , setup_path ):
303310
304311 # GH 32682
@@ -327,21 +334,20 @@ def create_h5_and_return_checksum(track_times):
327334
328335 return checksum (path )
329336
330- if LooseVersion (tables .__version__ ) >= LooseVersion ("3.4.3" ):
331- checksum_0_tt_false = create_h5_and_return_checksum (track_times = False )
332- checksum_0_tt_true = create_h5_and_return_checksum (track_times = True )
337+ checksum_0_tt_false = create_h5_and_return_checksum (track_times = False )
338+ checksum_0_tt_true = create_h5_and_return_checksum (track_times = True )
333339
334- # sleep is necessary to create h5 with different creation time
335- time .sleep (1 )
340+ # sleep is necessary to create h5 with different creation time
341+ time .sleep (1 )
336342
337- checksum_1_tt_false = create_h5_and_return_checksum (track_times = False )
338- checksum_1_tt_true = create_h5_and_return_checksum (track_times = True )
343+ checksum_1_tt_false = create_h5_and_return_checksum (track_times = False )
344+ checksum_1_tt_true = create_h5_and_return_checksum (track_times = True )
339345
340- # checksums are the same if track_time = False
341- assert checksum_0_tt_false == checksum_1_tt_false
346+ # checksums are the same if track_time = False
347+ assert checksum_0_tt_false == checksum_1_tt_false
342348
343- # checksums are NOT same if track_time = True
344- assert checksum_0_tt_true != checksum_1_tt_true
349+ # checksums are NOT same if track_time = True
350+ assert checksum_0_tt_true != checksum_1_tt_true
345351
346352 def test_keys_ignore_hdf_softlink (self , setup_path ):
347353
0 commit comments