summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2018-09-20 20:38:34 (GMT)
committerGitHub <noreply@github.com>2018-09-20 20:38:34 (GMT)
commitf14c28f39766855420dd58d209da4ad847f3030e (patch)
tree79b95924f711b99388b2899c119ae31f31ad2ce5 /Lib/distutils
parentbc854750589d4de0fd55693963964e0558b5c8ac (diff)
downloadcpython-f14c28f39766855420dd58d209da4ad847f3030e.zip
cpython-f14c28f39766855420dd58d209da4ad847f3030e.tar.gz
cpython-f14c28f39766855420dd58d209da4ad847f3030e.tar.bz2
bpo-34011: Fixes missing venv files and other tests (GH-9458)
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_bdist.py3
-rw-r--r--Lib/distutils/tests/test_bdist_wininst.py2
2 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_bdist.py b/Lib/distutils/tests/test_bdist.py
index f762f5d..c80b3ed 100644
--- a/Lib/distutils/tests/test_bdist.py
+++ b/Lib/distutils/tests/test_bdist.py
@@ -39,6 +39,9 @@ class BuildTestCase(support.TempdirManager,
for name in names:
subcmd = cmd.get_finalized_command(name)
+ if getattr(subcmd, '_unsupported', False):
+ # command is not supported on this build
+ continue
self.assertTrue(subcmd.skip_build,
'%s should take --skip-build from bdist' % name)
diff --git a/Lib/distutils/tests/test_bdist_wininst.py b/Lib/distutils/tests/test_bdist_wininst.py
index 5d17ab1..4c19bba 100644
--- a/Lib/distutils/tests/test_bdist_wininst.py
+++ b/Lib/distutils/tests/test_bdist_wininst.py
@@ -5,6 +5,8 @@ from test.support import run_unittest
from distutils.command.bdist_wininst import bdist_wininst
from distutils.tests import support
+@unittest.skipIf(getattr(bdist_wininst, '_unsupported', False),
+ 'bdist_wininst is not supported in this install')
class BuildWinInstTestCase(support.TempdirManager,
support.LoggingSilencer,
unittest.TestCase):