(self)
| 96 | # CRASHES addmoduleobject(NULL) |
| 97 | |
| 98 | def test_addmodule(self): |
| 99 | # Test PyImport_AddModule() |
| 100 | addmodule = _testlimitedcapi.PyImport_AddModule |
| 101 | self.check_addmodule(addmodule) |
| 102 | |
| 103 | self.assertRaises(UnicodeDecodeError, addmodule, b'\xff') |
| 104 | # CRASHES addmodule(NULL) |
| 105 | |
| 106 | def test_addmoduleref(self): |
| 107 | # Test PyImport_AddModuleRef() |
nothing calls this directly
no test coverage detected