Example #1
0
 def test_enabled(self):
     trackpy.enable_numba()
     for registered_func in self.funcs:
         module = __import__(registered_func.module_name, fromlist='.')
         func = getattr(module, registered_func.func_name)
         self.assertIs(func, registered_func.compiled)
         self.assertNotIsInstance(func, types.FunctionType)
Example #2
0
 def tearDown(self):
     if NUMBA_AVAILABLE:
         trackpy.enable_numba()