-
Notifications
You must be signed in to change notification settings - Fork 122
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
SPARQLWrapper > 1.7.1 seems to break upstream rdflib test #70
Comments
notice that i don't have any intention to merge RDFLib/rdflib#550 as that would cut SPARQLWrapper to 1.7.1 instead of current 1.7.5, RDFLib/rdflib#550 and this issue is just to figure out where to fix this best (and quick) |
I think I found the problem. Let's look at
This line exptects
right in front of it and running the unit tests again gives a unicode string as output:
Clearly,
fixes the unit test. Of course, I wouldn't recomend this as workaround. I think that SPARQLWrapper should return a file-like object in binary mode. Could it be that the new keepalive package introduced in commit 609961a is at fault? |
It turns out it is.
|
Reported this as an Issue against keepalive: wikier/keepalive#2 |
@joernhees I think what's causing troubles to @uholzer.... we'll discuss it in wikier/keepalive#2 and try to get a fix out asap. I'll keep you posted, guys. |
@joernhees wikier/keepalive#2 provides a candidate patch. Besides manual testing, I'd welcome a unit test on our side testing the reported issue; is that possible? |
see https://travis-ci.org/RDFLib/rdflib/builds/92929930 (was fixed on py2 but some stuff still fails on py3) |
a unit test inside SPARQLWrapper for queries/data with unicode chars would propbably be a good idea... |
@joernhees see wikier/keepalive#2, fixed in wikier/keepalive@b1d2c32. Definitely a unit test it's necessary. If no one contributed it, by the end of the week I'll to find time to take care of it before pushing out a new |
any idea how this could be tested? |
OK, let's push this out for now. |
i noticed that some PRs on upstream rdflib broke in seemingly unrelated code... (see RDFLib/rdflib#550 )
the error reported is this:
as the PRs locally passed all tests and i still had SPARQLWrapper 1.6.4, i started bisecting... it seems that when depending on SPARQLWrapper > 1.7.1 that one test suddenly breaks.
Any ideas which of the changes in 1.7.1...1.7.2 could be the cause?
The text was updated successfully, but these errors were encountered: