@@ -299,6 +299,13 @@ def test_keys(self, setup_path):
299
299
assert set (store .keys ()) == expected
300
300
assert set (store ) == expected
301
301
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
+ )
302
309
def test_no_track_times (self , setup_path ):
303
310
304
311
# GH 32682
@@ -327,21 +334,20 @@ def create_h5_and_return_checksum(track_times):
327
334
328
335
return checksum (path )
329
336
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 )
333
339
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 )
336
342
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 )
339
345
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
342
348
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
345
351
346
352
def test_keys_ignore_hdf_softlink (self , setup_path ):
347
353
0 commit comments