nvm ... テストスクリプトに以下を入れました:
import scipy
import os
import shutil
directory = os.getcwd()
userHomeDirectory = ( "/home/" + os.getlogin())
userHomeScipyTests = ( userHomeDirectory + "/scipytests" )
# print ("your current directory location is: " + directory)
print ("Making the following temp folder: " + userHomeScipyTests )
if (os.path.isdir(userHomeScipyTests)):
shutil.rmtree(userHomeScipyTests)
os.makedirs ( userHomeScipyTests )
os.chdir( userHomeScipyTests )
print os.getcwd()
output = scipy.test('full')
# print ("this is the output of the scipy full test: " + str(output.wasSuccessful()))
self.assertEqual(str(output.wasSuccessful()), 'True', 'FullSciPyTest failed')
if (output.wasSuccessful):
print ("Removing the following temp folder: " + userHomeScipyTests )
shutil.rmtree(userHomeScipyTests)