Skip to content

Commit d6757c8

Browse files
committed
test_build_details: Expect pkgconfig for CPython unconditionally
1 parent cdad9a4 commit d6757c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_build_details.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,8 @@ def test_base_interpreter(self):
127127
def test_c_api(self):
128128
value = self.key('c_api')
129129
self.assertTrue(os.path.exists(os.path.join(value['headers'], 'Python.h')))
130-
if 'pkgconfig_path' in value:
131-
version = sysconfig.get_config_var('VERSION')
132-
self.assertTrue(os.path.exists(os.path.join(value['pkgconfig_path'], f'python-{version}.pc')))
130+
version = sysconfig.get_config_var('VERSION')
131+
self.assertTrue(os.path.exists(os.path.join(value['pkgconfig_path'], f'python-{version}.pc')))
133132

134133

135134
if __name__ == '__main__':

0 commit comments

Comments
 (0)