We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3d0a9a commit 8ab5c81Copy full SHA for 8ab5c81
tests/unit/contentproviders/test_mercurial.py
@@ -1,15 +1,20 @@
1
-from pathlib import Path
+import os
2
import subprocess
3
+from pathlib import Path
4
from tempfile import TemporaryDirectory
-import os
5
-from distutils.util import strtobool
6
7
import pytest
8
9
from repo2docker.contentproviders import Mercurial
10
from repo2docker.contentproviders.mercurial import args_enabling_topic
11
12
-SKIP_HG = strtobool(os.environ.get("REPO2DOCKER_SKIP_HG_TESTS", "False"))
+
+SKIP_HG = os.environ.get("REPO2DOCKER_SKIP_HG_TESTS", "").lower() not in {
13
+ "",
14
+ "0",
15
+ "false",
16
+ "no",
17
+}
18
19
skip_if_no_hg_tests = pytest.mark.skipif(
20
SKIP_HG,
0 commit comments