remove deprecated call to distutils strtobool
MODIFY
tests/unit/contentproviders/test_mercurial.py
tests/unit/contentproviders/test_mercurial.py
-from pathlib import Path
+import os
import subprocess
+from pathlib import Path
from tempfile import TemporaryDirectory
-import os
-from distutils.util import strtobool
import pytest
from repo2docker.contentproviders import Mercurial
from repo2docker.contentproviders.mercurial import args_enabling_topic
-SKIP_HG = strtobool(os.environ.get("REPO2DOCKER_SKIP_HG_TESTS", "False"))
+
+SKIP_HG = os.environ.get("REPO2DOCKER_SKIP_HG_TESTS", "").lower() not in {
+ "",
+ "0",
+ "false",
+ "no",
+}
skip_if_no_hg_tests = pytest.mark.skipif(
SKIP_HG,

remove deprecated call to distutils strtobool