Description: Disable a broken test for GeoIP
The test is meant to check to see that a GeoIP object can be created, but
is currently broken as there a new checks in the GeoIP library that ensure
that a valid database is used, which this test doesn't use.
Author: Iain R. Learmonth <irl@debian.org>
Bug: https://github.com/meejah/txtorcon/issues/250
Last-Update: 2017-09-11
---
--- a/test/test_util.py
+++ b/test/test_util.py
@@ -68,13 +68,13 @@
util.GeoIP = _GeoIP
self.assertEqual(ret_val, None)
- @skipIf('pypy' in sys.version.lower(), "No GeoIP in PyPy")
- def test_return_geoip_object(self):
- from txtorcon import util
- (fd, f) = tempfile.mkstemp()
- ret_val = util.create_geoip(f)
- delete_file_or_tree(f)
- self.assertEqual(type(ret_val).__name__, 'GeoIP')
+# @skipIf('pypy' in sys.version.lower(), "No GeoIP in PyPy")
+# def test_return_geoip_object(self):
+# from txtorcon import util
+# (fd, f) = tempfile.mkstemp()
+# ret_val = util.create_geoip(f)
+# delete_file_or_tree(f)
+# self.assertEqual(type(ret_val).__name__, 'GeoIP')
class TestFindKeywords(unittest.TestCase):