@contextlib.contextmanager
    def assertTypingError(self):
        _accepted_errors = (errors.LoweringError, errors.TypingError,
                            TypeError, NotImplementedError)
        with self.assertRaises(_accepted_errors) as cm:
            yield cm
Sets the cursor to a specified cursor shape.
dataset/ETHPy150Open numba/numba/numba/tests/support.py/TestCase.assertTypingError--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/dock/dock_window.py/DockWindow.set_cursor