diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-18 14:41:01 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-18 14:41:01 (GMT) |
commit | 3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874 (patch) | |
tree | 1107d3f6a9a5da5c08a1b5308794202e8ba242f4 /Lib/distutils/tests/test_sysconfig.py | |
parent | 4be1e24933db192b3cf95e102a46673bb3312dc3 (diff) | |
download | cpython-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_sysconfig.py')
-rw-r--r-- | Lib/distutils/tests/test_sysconfig.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/distutils/tests/test_sysconfig.py b/Lib/distutils/tests/test_sysconfig.py index 07812d8..a1cb47d 100644 --- a/Lib/distutils/tests/test_sysconfig.py +++ b/Lib/distutils/tests/test_sysconfig.py @@ -82,12 +82,9 @@ class SysconfigTestCase(support.EnvironGuard, os.chdir(cwd) self.assertEqual(srcdir, srcdir2) + @unittest.skipUnless(get_default_compiler() == 'unix', + 'not testing if default compiler is not unix') def test_customize_compiler(self): - - # not testing if default compiler is not unix - if get_default_compiler() != 'unix': - return - os.environ['AR'] = 'my_ar' os.environ['ARFLAGS'] = '-arflags' @@ -150,7 +147,7 @@ class SysconfigTestCase(support.EnvironGuard, import sysconfig as global_sysconfig if sysconfig.get_config_var('CUSTOMIZED_OSX_COMPILER'): - return + self.skipTest('compiler flags customized') self.assertEqual(global_sysconfig.get_config_var('LDSHARED'), sysconfig.get_config_var('LDSHARED')) self.assertEqual(global_sysconfig.get_config_var('CC'), sysconfig.get_config_var('CC')) |