def setUp(self):
     CythonTest.setUp(self)
     self.temp_dir = tempfile.mkdtemp(
         prefix='cycache-test',
         dir='TEST_TMP' if os.path.isdir('TEST_TMP') else None)
     self.src_dir = tempfile.mkdtemp(prefix='src', dir=self.temp_dir)
     self.cache_dir = tempfile.mkdtemp(prefix='cache', dir=self.temp_dir)
Пример #2
0
 def setUp(self):
     CythonTest.setUp(self)
     self.temp_dir = tempfile.mkdtemp(
         prefix='cycache-test',
         dir='TEST_TMP' if os.path.isdir('TEST_TMP') else None)
     self.src_dir = tempfile.mkdtemp(prefix='src', dir=self.temp_dir)
     self.cache_dir = tempfile.mkdtemp(prefix='cache', dir=self.temp_dir)
Пример #3
0
 def setUp(self):
     CythonTest.setUp(self)
     self.test_kwds = dict(test_kwds)
     if os.path.isdir('TEST_TMP'):
         lib_dir = os.path.join('TEST_TMP', 'inline')
     else:
         lib_dir = tempfile.mkdtemp(prefix='cython_inline_')
     self.test_kwds['lib_dir'] = lib_dir
Пример #4
0
 def setUp(self):
     CythonTest.setUp(self)
     self.test_kwds = dict(test_kwds)
     if os.path.isdir('BUILD'):
         lib_dir = os.path.join('BUILD','inline')
     else:
         lib_dir = tempfile.mkdtemp(prefix='cython_inline_')
     self.test_kwds['lib_dir'] = lib_dir
Пример #5
0
 def setUp(self):
     CythonTest.setUp(self)
     self.test_kwds = dict(test_kwds)
     if os.path.isdir("TEST_TMP"):
         lib_dir = os.path.join("TEST_TMP", "inline")
     else:
         lib_dir = tempfile.mkdtemp(prefix="cython_inline_")
     self.test_kwds["lib_dir"] = lib_dir
Пример #6
0
 def setUp(self):
     CythonTest.setUp(self)
     self._ip.extension_manager.load_extension('cython')
Пример #7
0
 def setUp(self):
     CythonTest.setUp(self)
     ip.extension_manager.load_extension('cython')
Пример #8
0
 def setUp(self):
     CythonTest.setUp(self)
     self.temp_dir = (tempfile.mkdtemp(
         prefix='recythonize-test',
         dir='TEST_TMP' if os.path.isdir('TEST_TMP') else None))