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.
This commit is contained in:
Victor Stinner 2019-09-05 18:09:46 +02:00 committed by GitHub
parent 2bc43cdc01
commit 3f43ceff18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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):