summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-09-05 16:09:46 (GMT)
committerGitHub <noreply@github.com>2019-09-05 16:09:46 (GMT)
commit3f43ceff186da09978d0aff257bb18b8ac7611f7 (patch)
treec17131aa3910e8dcc3d0f81a33510ee75d232765 /Lib/test/test_tools
parent2bc43cdc015eda4f1a651bb2b308a17a83c38e14 (diff)
downloadcpython-3f43ceff186da09978d0aff257bb18b8ac7611f7.zip
cpython-3f43ceff186da09978d0aff257bb18b8ac7611f7.tar.gz
cpython-3f43ceff186da09978d0aff257bb18b8ac7611f7.tar.bz2
bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705)
If Python is installed, skip test_tools.test_pathfix test because Tools/scripts/pathfix.py script is not installed.
Diffstat (limited to 'Lib/test/test_tools')
-rw-r--r--Lib/test/test_tools/test_pathfix.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_tools/test_pathfix.py b/Lib/test/test_tools/test_pathfix.py
index 5c0dd1d..0c1aea7 100644
--- a/Lib/test/test_tools/test_pathfix.py
+++ b/Lib/test/test_tools/test_pathfix.py
@@ -3,7 +3,11 @@ import subprocess
import sys
import unittest
from test import support
-from test.test_tools import import_tool, scriptsdir
+from test.test_tools import import_tool, scriptsdir, skip_if_missing
+
+
+# need Tools/script/ directory: skip if run on Python installed on the system
+skip_if_missing()
class TestPathfixFunctional(unittest.TestCase):