[Python-checkins] bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705) (GH-16389)
Victor Stinner
webhook-mailer at python.org
Wed Sep 25 10:12:36 EDT 2019
https://github.com/python/cpython/commit/2e566bf35e96f0d6ca6fe291f179e832d1c32186
commit: 2e566bf35e96f0d6ca6fe291f179e832d1c32186
branch: 3.8
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2019-09-25T16:12:32+02:00
summary:
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)
files:
M Lib/test/test_tools/test_pathfix.py
diff --git a/Lib/test/test_tools/test_pathfix.py b/Lib/test/test_tools/test_pathfix.py
index ce3d536c1293..a87992491344 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):
More information about the Python-checkins
mailing list