From 8c7504c8b4e70e3723ddcf64fe616df213b2445a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 5 Sep 2019 17:40:57 +0200 Subject: [PATCH] bpo-37064: Skip test_tools.test_pathfix if installed If Python is installed, skip test_tools.test_pathfix test because Tools/scripts/pathfix.py script is not installed. --- Lib/test/test_tools/test_pathfix.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_tools/test_pathfix.py b/Lib/test/test_tools/test_pathfix.py index 5c0dd1d5a60c06..0c1aea7211703f 100644 --- a/Lib/test/test_tools/test_pathfix.py +++ b/Lib/test/test_tools/test_pathfix.py @@ -3,7 +3,11 @@ 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):