def reset_module_warnings(self, module):
        """
        Reset the warnings registry of a module.  This can be necessary
        as the warnings module is buggy in that regard.
        See http://bugs.python.org/issue4180
        """
        if isinstance(module, str):
            module = sys.modules[module]
        try:
            del module.__warningregistry__
        except __HOLE__:
            pass
dataset/ETHPy150Open numba/numba/numba/tests/support.py/TestCase.reset_module_warnings