summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-09-25 14:12:32 (GMT)
committerGitHub <noreply@github.com>2019-09-25 14:12:32 (GMT)
commit2e566bf35e96f0d6ca6fe291f179e832d1c32186 (patch)
tree83ba96abebb2e81081b24c89fe2664c3596b5977
parentc71c54c62600fd721baed3c96709e3d6e9c33817 (diff)
downloadcpython-2e566bf35e96f0d6ca6fe291f179e832d1c32186.zip
cpython-2e566bf35e96f0d6ca6fe291f179e832d1c32186.tar.gz
cpython-2e566bf35e96f0d6ca6fe291f179e832d1c32186.tar.bz2
bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705) (GH-16389)
If Python is installed, skip test_tools.test_pathfix test because Tools/scripts/pathfix.py script is not installed. (cherry picked from commit 3f43ceff186da09978d0aff257bb18b8ac7611f7)
-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 ce3d536..a879924 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):