Manage case in unit_test running when LD_LIBRARY_PATH is not already defined in the environment

This commit is contained in:
fedepell 2016-06-21 09:13:57 +02:00
parent 9f610bd23f
commit 567ab43ac2
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def make_test(self):
if not hasattr(self, 'ut_env'):
self.ut_env = dct = dict(os.environ)
def add_path(var):
dct[var] = self.ut_paths + dct[var]
dct[var] = self.ut_paths + dct.get(var,'')
if Utils.is_win32:
add_path('PATH')
elif Utils.unversioned_sys_platform() == 'darwin':