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:37:55 UTC 2018


Pau Espin Pedrol has submitted this change and it was merged. ( 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(-)

Approvals:
  Pau Espin Pedrol: Looks good to me, approved; Verified



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: merged
Gerrit-Change-Id: Iac81151f5baec092a3d15bbe6541b5bc007e6a03
Gerrit-Change-Number: 9159
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180514/20222416/attachment.htm>


More information about the gerrit-log mailing list