From: Victor Stinner Date: Thu, 5 Sep 2019 16:09:46 +0000 (+0200) Subject: bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705) X-Git-Tag: v3.9.0a1~694 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f43ceff186da09978d0aff257bb18b8ac7611f7;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_tools/test_pathfix.py b/Lib/test/test_tools/test_pathfix.py index 5c0dd1d5a60c..0c1aea721170 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):