'Test SystemError is raised for misbehaving extensions'

def test_bad_modules(self):

    for name_base in ['bad_slot_large', 'bad_slot_negative', 'create_int_with_state', 'negative_size', 'export_null', 'export_uninitialized', 'export_raise', 'export_unreported_exception', 'create_null', 'create_raise', 'create_unreported_exception', 'nonmodule_with_exec_slots', 'exec_err', 'exec_raise', 'exec_unreported_exception']:
        with self.subTest(name_base):
            name = ((self.name + '_') + name_base)
            with self.assertRaises(SystemError):
                self.load_module_by_name(name)
