Change in osmo-gsm-tester[master]: util: Fix unloading of suite lib import path

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon May 14 13:35:14 UTC 2018


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/9159


Change subject: util: Fix unloading of suite lib import path
......................................................................

util: Fix unloading of suite lib import path

Change-Id: Iac81151f5baec092a3d15bbe6541b5bc007e6a03
---
M src/osmo_gsm_tester/util.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/59/9159/1

diff --git a/src/osmo_gsm_tester/util.py b/src/osmo_gsm_tester/util.py
index c7efb77..27c71cf 100644
--- a/src/osmo_gsm_tester/util.py
+++ b/src/osmo_gsm_tester/util.py
@@ -119,7 +119,7 @@
 
 def import_path_remove(pathname):
     dir = os.path.realpath(pathname)
-    if dir not in sys.path:
+    if dir in sys.path:
         sys.path.remove(dir)
 
 class listdict(dict):

-- 
To view, visit https://gerrit.osmocom.org/9159
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iac81151f5baec092a3d15bbe6541b5bc007e6a03
Gerrit-Change-Number: 9159
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180514/75fd8e20/attachment.htm>


More information about the gerrit-log mailing list