(self)
| 134 | # CRASHES importmodule(NULL) |
| 135 | |
| 136 | def test_importmodulenoblock(self): |
| 137 | # Test deprecated (stable ABI only) PyImport_ImportModuleNoBlock() |
| 138 | importmodulenoblock = _testlimitedcapi.PyImport_ImportModuleNoBlock |
| 139 | with check_warnings(('', DeprecationWarning)): |
| 140 | self.check_import_func(importmodulenoblock) |
| 141 | self.assertRaises(UnicodeDecodeError, importmodulenoblock, b'\xff') |
| 142 | |
| 143 | # CRASHES importmodulenoblock(NULL) |
| 144 | |
| 145 | def check_frozen_import(self, import_frozen_module): |
| 146 | # Importing a frozen module executes its code, so start by unloading |
nothing calls this directly
no test coverage detected