diff --git a/tests/test_ip_to_geo.py b/tests/test_ip_to_geo.py index f2de38c..abaf699 100755 --- a/tests/test_ip_to_geo.py +++ b/tests/test_ip_to_geo.py @@ -4,8 +4,11 @@ import os from iptogeo import IPToGeo, IPToGeoException -TIMEOUT=3 +TIMEOUT = None +# TIMEOUT = 5.0 + iptogeo = IPToGeo(timeout=TIMEOUT) + def get_random_ip_v4(): ip = '%d.%d.%d.%d' % \ (ord(os.urandom(1)), ord(os.urandom(1)), ord(os.urandom(1)), ord(os.urandom(1))) @@ -59,3 +62,5 @@ for i in range(0, 1000): print 'Test %d' % (i) for proxy in geo_proxy: test_ip(get_random_ip_v4(), verbose=False, proxy=proxy) + +print 'All is OK for me'