From 36d5b0f43beb730b8c9eda2995079de0a122c5a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 4 Feb 2016 20:39:50 +0100 Subject: [PATCH] Print a message at then end of test --- tests/test_ip_to_geo.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'