diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-18 14:45:24 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-18 14:45:24 (GMT) |
commit | 3f5f436680248d42dafa1d69119ae7c6b434a2c9 (patch) | |
tree | 3302830f47c59b6ee42bfcc222407a27828a4e82 /Lib/distutils/tests/test_sysconfig.py | |
parent | 0ce3e9d82bc88351979ba4e23655568c339b8acc (diff) | |
parent | 3c02ecefba5ad26af1f09ac7a2f44fbff1e2e874 (diff) | |
download | cpython-3f5f436680248d42dafa1d69119ae7c6b434a2c9.zip cpython-3f5f436680248d42dafa1d69119ae7c6b434a2c9.tar.gz cpython-3f5f436680248d42dafa1d69119ae7c6b434a2c9.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 b5fdc98..95fa9dc 100644 --- a/Lib/distutils/tests/test_sysconfig.py +++ b/Lib/distutils/tests/test_sysconfig.py @@ -80,12 +80,9 @@ class SysconfigTestCase(support.EnvironGuard, unittest.TestCase): 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' @@ -151,7 +148,7 @@ class SysconfigTestCase(support.EnvironGuard, unittest.TestCase): 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'), |