projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bc43cd
)
bpo-37064: Skip test_tools.test_pathfix if installed (GH-15705)
author
Victor Stinner
<vstinner@redhat.com>
Thu, 5 Sep 2019 16:09:46 +0000
(18:09 +0200)
committer
GitHub
<noreply@github.com>
Thu, 5 Sep 2019 16:09:46 +0000
(18:09 +0200)
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
patch
|
blob
|
history
diff --git
a/Lib/test/test_tools/test_pathfix.py
b/Lib/test/test_tools/test_pathfix.py
index 5c0dd1d5a60c06f1aaa32ee0e3e86aba644e26bf..0c1aea7211703fc28010c2b33388085d1679983c 100644
(file)
--- 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):