def test_module_not_in_namespace(self):
        """ Test of trying to run a compiled function
        where the module from which the function is being compiled
        doesn't exist in the namespace.
        """
        filename = 'test.py'
        name = 'mypackage'
        code = """
def f(x):
    return x
"""

        objs = dict(__file__=filename, __name__=name)
        compiled = compile(code, filename, 'exec')
        exec(compiled, objs)

        compiled_f = njit(objs['f'])
        self.assertEqual(compiled_f(3), 3)
 Test of trying to run a compiled function
        where the module from which the function is being compiled
        doesn't exist in the namespace.
        
numba/tests/test_funcdesc.py