コード例 #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)