Skip to content
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

Closed
irl opened this issue Sep 8, 2017 · 3 comments · Fixed by #340
Closed

test_return_geoip_object fails as new geoip tests if database is not corrupt #250

irl opened this issue Sep 8, 2017 · 3 comments · Fixed by #340
Labels

Comments

@irl
Copy link

irl commented Sep 8, 2017

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.

@jluttine
Copy link

jluttine commented Feb 5, 2018

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?

@irl
Copy link
Author

irl commented Feb 5, 2018

@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.

jluttine added a commit to jluttine/nixpkgs that referenced this issue Feb 10, 2018
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.
@irl
Copy link
Author

irl commented Jun 13, 2019

This test is still broken in 19.0.0.

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue May 16, 2020
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants