Commit 0110bc32 by William Tisäter

Drop tests with extreme DNS timeout and little value

parent 509b82e7
......@@ -22,10 +22,6 @@ class TestGenerals(unittest.TestCase):
gi = pygeoip.GeoIP(filename=CORRUPT_DB_PATH)
gi.country_code_by_name('google.com')
@raises(socket.gaierror)
def testFailedLookup(self):
self.gi.country_code_by_name('google')
@raises(socket.error)
def testInvalidAddress(self):
self.gi.country_code_by_addr('google.com')
......
......@@ -67,11 +67,6 @@ class TestGeoIPCountryFunctions(unittest.TestCase):
self.assertEqual(gb_name, self.gb_name)
self.assertEqual(ie6_name, self.ie_name)
@raises(socket.gaierror)
def testFailedIPv6Lookup(self):
data = self.gi6.country_code_by_name('google')
raise ValueError(data)
@raises(pygeoip.GeoIPError)
def testOpen4With6(self):
data = self.gi.country_code_by_addr(self.ie6_ip)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment