Skip to content

Commit 8ab5c81

Browse files
committed
remove deprecated call to distutils strtobool
1 parent e3d0a9a commit 8ab5c81

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tests/unit/contentproviders/test_mercurial.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
from pathlib import Path
1+
import os
22
import subprocess
3+
from pathlib import Path
34
from tempfile import TemporaryDirectory
4-
import os
5-
from distutils.util import strtobool
65

76
import pytest
87

98
from repo2docker.contentproviders import Mercurial
109
from repo2docker.contentproviders.mercurial import args_enabling_topic
1110

12-
SKIP_HG = strtobool(os.environ.get("REPO2DOCKER_SKIP_HG_TESTS", "False"))
11+
12+
SKIP_HG = os.environ.get("REPO2DOCKER_SKIP_HG_TESTS", "").lower() not in {
13+
"",
14+
"0",
15+
"false",
16+
"no",
17+
}
1318

1419
skip_if_no_hg_tests = pytest.mark.skipif(
1520
SKIP_HG,

0 commit comments

Comments
 (0)