(self)
| 163 | "Android and iOS run tests via a custom testbed method that doesn't ship headers" |
| 164 | ) |
| 165 | def test_c_api(self): |
| 166 | value = self.key('c_api') |
| 167 | |
| 168 | # Skip check if installation is relocated |
| 169 | if sysconfig._installation_is_relocated(): |
| 170 | self.skipTest("Installation is relocated") |
| 171 | |
| 172 | self.assertTrue(os.path.exists(os.path.join(value['headers'], 'Python.h'))) |
| 173 | version = sysconfig.get_config_var('VERSION') |
| 174 | self.assertTrue(os.path.exists(os.path.join(value['pkgconfig_path'], f'python-{version}.pc'))) |
| 175 | |
| 176 | |
| 177 | @unittest.skipIf( |
nothing calls this directly
no test coverage detected