Skip to content

Commit

Permalink
test_base - Remove distutils
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Mar 11, 2024
1 parent cb27ea8 commit 6da11b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# pylint: disable=missing-docstring
import pickle
import unittest
from distutils.version import LooseVersion

from packaging.version import Version

import Orange

Expand Down Expand Up @@ -137,7 +138,7 @@ def test_callback(self):
def test_supports_weights_property(self):
"""This test is to be included in the 3.37 release and will fail in
version 3.39. This serves as a reminder."""
if LooseVersion(Orange.__version__) >= LooseVersion("3.39"):
if Version(Orange.__version__) >= Version("3.39"):
self.fail(
"`SklLearner.supports_weights` as a property that parses fit() "
"was deprecated in 3.37. Replace it with `supports_weights = False`"
Expand Down

0 comments on commit 6da11b8

Please sign in to comment.