-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_return_geoip_object fails as new geoip tests if database is not corrupt #250
Comments
I'm packaging txtorcon for a distro and this causes problems. Would like to see it solved or is there a workaround? Is it safe to just skip the failing test? |
@jluttine You can just skip the failing test. The problem is that the GeoIP library now validates that the database is valid before giving you an object back but in the test case, it is not valid, so will always fail. A fixed test case would provide a valid database. |
There is a bug in the upstream package that causes one test to fail currently: meejah/txtorcon#250 The test can be safely ignored but should be enabled once it's been fixed upstream.
This test is still broken in 19.0.0. |
v20.0.0: I'm pleased to announce txtorcon 20.0.0. This fixes a few bugs and officially deprecates Python 2 support. * Use real GeoIP database or nothing (meejah/txtorcon#250) * Change abstract base classes import in preperation for Python 3.8 * Python 3.4 is no longer supported * Python 2 is deprecated; all new code should be Python 3. Support for Python 2 will be removed in a future release.
The new test can be seen at:
http://sources.debian.net/src/geoip/1.6.11-2/libGeoIP/GeoIP.c/#L1202
This didn't exist a couple of minor releases ago, but the test will now fail as it's being given an empty file, not a valid database.
The text was updated successfully, but these errors were encountered: