File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -4140,9 +4140,9 @@ def write(
4140
4140
4141
4141
if track_times is not None :
4142
4142
from tables import __version__ as tables_version
4143
- from packaging .version import Version
4143
+ from distutils .version import LooseVersion
4144
4144
4145
- if Version (tables_version ) >= Version ("3.4.3" ):
4145
+ if LooseVersion (tables_version ) >= LooseVersion ("3.4.3" ):
4146
4146
options ["track_times" ] = track_times
4147
4147
else :
4148
4148
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