Skip to content

Commit

Permalink
CI: Replace depricated distutils lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-Rivkin committed Nov 18, 2024
1 parent 409480d commit 06e3f08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/apps/test_ucx_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import re
import itertools
import contextlib
from distutils.version import LooseVersion
from optparse import OptionParser
from pkg_resources import parse_version


#expected AM transport selections per given number of eps
Expand Down Expand Up @@ -276,7 +276,7 @@ def test_tls_allow_list(ucx_info):
override = 1
else:
fw_ver = open(f"/sys/class/infiniband/{dev}/fw_ver").read()
if LooseVersion(fw_ver) >= LooseVersion("16.23.0"):
if parse_version(fw_ver) >= parse_version("16.23.0"):
dev_tl_map = am_tls[dev_name+"_roce_dc"]
else:
dev_tl_map = am_tls[dev_name+"_roce_no_dc"]
Expand Down

0 comments on commit 06e3f08

Please sign in to comment.