(self)
| 118 | self.assertRaises(ValueError, import_module, '') |
| 119 | |
| 120 | def test_import(self): |
| 121 | # Test PyImport_Import() |
| 122 | import_ = _testlimitedcapi.PyImport_Import |
| 123 | self.check_import_func(import_) |
| 124 | |
| 125 | self.assertRaises(TypeError, import_, b'os') |
| 126 | self.assertRaises(SystemError, import_, NULL) |
| 127 | |
| 128 | def test_importmodule(self): |
| 129 | # Test PyImport_ImportModule() |
nothing calls this directly
no test coverage detected