Skip to content

Commit 2e566bf

Browse files
authored
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 3f43cef)
1 parent c71c54c commit 2e566bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Lib/test/test_tools/test_pathfix.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import sys
44
import unittest
55
from test import support
6-
from test.test_tools import import_tool, scriptsdir
6+
from test.test_tools import import_tool, scriptsdir, skip_if_missing
7+
8+
9+
# need Tools/script/ directory: skip if run on Python installed on the system
10+
skip_if_missing()
711

812

913
class TestPathfixFunctional(unittest.TestCase):

0 commit comments

Comments
 (0)