[PATCH 30/31] Python IP addresses: Remove sys.path hacking from test script

Ian Jackson ijackson at chiark.greenend.org.uk
Sat Sep 20 01:32:25 BST 2014

Now that we no longer have ipaddr.py in our tree, we can get rid of
this messing about with sys.path.  We use the system's ipaddr.py and
our own ipaddrset.py.

Signed-off-by: Ian Jackson <ijackson at chiark.greenend.org.uk>
 ipaddrset-test.py |   10 ----------
 1 file changed, 10 deletions(-)

diff --git a/ipaddrset-test.py b/ipaddrset-test.py
index 12663bc..a561db1 100755
--- a/ipaddrset-test.py
+++ b/ipaddrset-test.py
@@ -1,18 +1,8 @@
-import sys
-import copy
-import os
-for p in ['','.',os.getcwd()]:
-    try: sys.path.remove(p)
-    except ValueError: pass
 import ipaddr
 from ipaddr import IPNetwork, IPAddress
 import ipaddrset
 from ipaddrset import IPAddressSet

More information about the sgo-software-discuss mailing list