Skip to content

Commit 432a9bc

Browse files
committed
Use skipIf decorator, address PR review feedback
1 parent e9c2e7a commit 432a9bc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Lib/test/test_sysconfig.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,11 @@ def test_makefile_overwrites_config_vars(self):
712712
@unittest.skipIf(os.name != 'posix', 'pkg-config files are only installed on POSIX')
713713
@unittest.skipIf(is_wasi or is_android or is_apple_mobile,
714714
'no pkg-config files on this platform')
715+
@unittest.skipIf(get_config_var('RELOCATABLE') != 'yes',
716+
'requires --enable-relocatable')
717+
@unittest.skipIf(is_python_build(),
718+
'pkg-config files are only installed by make install')
715719
def test_pkgconfig_prefix(self):
716-
if get_config_var('RELOCATABLE') != 'yes':
717-
self.skipTest('requires --enable-relocatable')
718-
if is_python_build():
719-
self.skipTest('pkg-config files are only installed by make install')
720720
libpc = os.path.join(os.path.dirname(sys._stdlib_dir), 'pkgconfig')
721721
ldversion = get_config_var('LDVERSION')
722722
for name in (f'python-{ldversion}.pc', f'python-{ldversion}-embed.pc'):

0 commit comments

Comments
 (0)