(self)
| 209 | # CRASHES importmodulelevel(NULL, NULL, NULL, NULL, 0) |
| 210 | |
| 211 | def test_importmodulelevelobject(self): |
| 212 | # Test PyImport_ImportModuleLevelObject() |
| 213 | importmodulelevel = _testlimitedcapi.PyImport_ImportModuleLevelObject |
| 214 | self.check_importmodulelevel(importmodulelevel) |
| 215 | |
| 216 | self.assertRaises(TypeError, importmodulelevel, b'os', NULL, NULL, NULL, 0) |
| 217 | self.assertRaises(ValueError, importmodulelevel, NULL, NULL, NULL, NULL, 0) |
| 218 | |
| 219 | def check_executecodemodule(self, execute_code, *args): |
| 220 | name = 'test_import_executecode' |
nothing calls this directly
no test coverage detected