(self)
| 126 | self.assertRaises(SystemError, import_, NULL) |
| 127 | |
| 128 | def test_importmodule(self): |
| 129 | # Test PyImport_ImportModule() |
| 130 | importmodule = _testlimitedcapi.PyImport_ImportModule |
| 131 | self.check_import_func(importmodule) |
| 132 | |
| 133 | self.assertRaises(UnicodeDecodeError, importmodule, b'\xff') |
| 134 | # CRASHES importmodule(NULL) |
| 135 | |
| 136 | def test_importmodulenoblock(self): |
| 137 | # Test deprecated (stable ABI only) PyImport_ImportModuleNoBlock() |
nothing calls this directly
no test coverage detected