diff options
author | Steve Dower <steve.dower@microsoft.com> | 2018-09-20 13:38:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 13:38:34 -0700 |
commit | e5fede1f013671465e4023d5048d2fbab33a8932 (patch) | |
tree | 6062fbdf036318464d2d8da656fedf49fa1b00e3 | |
parent | b277efb9be14751c874aff02f72237bad8600df3 (diff) | |
download | python-setuptools-git-e5fede1f013671465e4023d5048d2fbab33a8932.tar.gz |
bpo-34011: Fixes missing venv files and other tests (GH-9458)
-rw-r--r-- | tests/test_bdist.py | 3 | ||||
-rw-r--r-- | tests/test_bdist_wininst.py | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_bdist.py b/tests/test_bdist.py index f762f5d9..c80b3edc 100644 --- a/tests/test_bdist.py +++ b/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/tests/test_bdist_wininst.py b/tests/test_bdist_wininst.py index 5d17ab19..4c19bbab 100644 --- a/tests/test_bdist_wininst.py +++ b/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): |