예제 #1
0
 def __exit__(self, exc_type, exc_value, tb):
     set_is_malloc_allowed(False)
     return False  # let the exceptions fall through
예제 #2
0
 def tearDown(self):
     set_is_malloc_allowed(True)
예제 #3
0
 def __enter__(self):
     set_is_malloc_allowed(True)
     return self
예제 #4
0
 def setUp(self):
     # assure that no heap memory allocation in Eigen happens during this test class
     set_is_malloc_allowed(False)
예제 #5
0
파일: support.py 프로젝트: fivejjs/Ceygen
 def __exit__(self, exc_type, exc_value, tb):
     set_is_malloc_allowed(False)
     return False  # let the exceptions fall through
예제 #6
0
파일: support.py 프로젝트: fivejjs/Ceygen
 def __enter__(self):
     set_is_malloc_allowed(True)
     return self
예제 #7
0
파일: support.py 프로젝트: fivejjs/Ceygen
 def tearDown(self):
     set_is_malloc_allowed(True)
예제 #8
0
파일: support.py 프로젝트: fivejjs/Ceygen
 def setUp(self):
     # assure that no heap memory allocation in Eigen happens during this test class
     set_is_malloc_allowed(False)