File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -4147,9 +4147,9 @@ def write(
4147
4147
4148
4148
if track_times is not None :
4149
4149
from tables import __version__ as tables_version
4150
- from packaging .version import Version
4150
+ from distutils .version import LooseVersion
4151
4151
4152
- if Version (tables_version ) >= Version ("3.4.3" ):
4152
+ if LooseVersion (tables_version ) >= LooseVersion ("3.4.3" ):
4153
4153
options ["track_times" ] = track_times
4154
4154
else :
4155
4155
raise ValueError (
Original file line number Diff line number Diff line change @@ -304,7 +304,6 @@ def test_no_track_times(self, setup_path):
304
304
import hashlib
305
305
import time
306
306
import tables
307
- from packaging .version import Version
308
307
309
308
def checksum (filename , hash_factory = hashlib .md5 , chunk_num_blocks = 128 ):
310
309
h = hash_factory ()
@@ -329,7 +328,7 @@ def create_h5_and_return_checksum(track_times):
329
328
330
329
return checksum (path )
331
330
332
- if Version (tables .__version__ ) < Version ("3.4.3" ):
331
+ if LooseVersion (tables .__version__ ) < LooseVersion ("3.4.3" ):
333
332
with pytest .raises (
334
333
ValueError ,
335
334
match = "You cannot set track_times with table version < 3.4.3" ,
You can’t perform that action at this time.
0 commit comments