From 2e566bf35e96f0d6ca6fe291f179e832d1c32186 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 25 Sep 2019 16:12:32 +0200 Subject: [PATCH] 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) --- 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 ce3d536c12..a879924913 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): -- 2.50.1