Exemplo n.º 1
0
 def __exit__(self, exc_type, exc_value, tb):
     set_is_malloc_allowed(False)
     return False  # let the exceptions fall through
Exemplo n.º 2
0
 def tearDown(self):
     set_is_malloc_allowed(True)
Exemplo n.º 3
0
 def __enter__(self):
     set_is_malloc_allowed(True)
     return self
Exemplo n.º 4
0
 def setUp(self):
     # assure that no heap memory allocation in Eigen happens during this test class
     set_is_malloc_allowed(False)
Exemplo n.º 5
0
 def __exit__(self, exc_type, exc_value, tb):
     set_is_malloc_allowed(False)
     return False  # let the exceptions fall through
Exemplo n.º 6
0
 def __enter__(self):
     set_is_malloc_allowed(True)
     return self
Exemplo n.º 7
0
 def tearDown(self):
     set_is_malloc_allowed(True)
Exemplo n.º 8
0
 def setUp(self):
     # assure that no heap memory allocation in Eigen happens during this test class
     set_is_malloc_allowed(False)