summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests/test_build_ext.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-18 14:41:01 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-18 14:41:01 (GMT)
commit3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874 (patch)
tree1107d3f6a9a5da5c08a1b5308794202e8ba242f4 /Lib/distutils/tests/test_build_ext.py
parent4be1e24933db192b3cf95e102a46673bb3312dc3 (diff)
downloadcpython-3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874.zip
cpython-3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874.tar.gz
cpython-3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874.tar.bz2
Issue #19492: Silently skipped distutils tests now reported as skipped.
Diffstat (limited to 'Lib/distutils/tests/test_build_ext.py')
-rw-r--r--Lib/distutils/tests/test_build_ext.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index 3cfaa2c..9853abd 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -61,9 +61,9 @@ class BuildExtTestCase(TempdirManager,
sys.stdout = old_stdout
if ALREADY_TESTED:
- return
+ self.skipTest('Already tested in %s' % ALREADY_TESTED)
else:
- ALREADY_TESTED = True
+ ALREADY_TESTED = type(self).__name__
import xx
@@ -113,10 +113,6 @@ class BuildExtTestCase(TempdirManager,
self.assertGreater(len(cmd.library_dirs), 0)
def test_user_site(self):
- # site.USER_SITE was introduced in 2.6
- if sys.version < '2.6':
- return
-
import site
dist = Distribution({'name': 'xx'})
cmd = build_ext(dist)