Merge pull request #1761 from fedepell/unit_test_ldlibrarypath

Manage case in unit_test running when LD_LIBRARY_PATH is not already defined in the environment
This commit is contained in:
ita1024 2016-06-21 19:51:06 +02:00 committed by GitHub
commit 7acb027961
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':