Prevent from_n3
from unescaping \xhh
by aucampia · Pull Request #1343 · RDFLib/rdflib (original) (raw)
@nicholascar all test should pass, I just meant, the fix here is maybe not really worth that much given the other problems with the function, so just merging the tests here without the fix could make sense, but I guess reducing the amount of potential problems with the function is not a bad thing either.
The OSError: [Errno 99] Cannot assign requested address
is coming from the test that still use DBPedia directly (here).
1804 Traceback (most recent call last):
1805 File "/drone/src/test/test_sparqlstore.py", line 50, in test_Query
1806 res = helper.query_with_retry(self.graph, query, initNs={})
1807 File "/drone/src/test/helper.py", line 41, in query_with_retry
1808 result = graph.query(query, **kwargs)
The last 6 spurious test failures before this also all came from this DBPedia tests, and I'm sure more, just have not checked.
- https://drone.rdflib.ashs.dev/RDFLib/rdflib/210/2/2 : test/test_sparqlstore.py, line 120
- https://drone.rdflib.ashs.dev/RDFLib/rdflib/198/2/2 : test/test_sparqlstore.py, line 44
- https://drone.rdflib.ashs.dev/RDFLib/rdflib/195/1/2: test/test_sparqlstore.py, line 105 (this time it was "HTTP Error 502: Bad Gateway")
- https://drone.rdflib.ashs.dev/RDFLib/rdflib/194/2/2 : test/test_sparqlstore.py, line 50
- https://drone.rdflib.ashs.dev/RDFLib/rdflib/183/1/2 : test/test_sparqlstore.py, line 50
- https://drone.rdflib.ashs.dev/RDFLib/rdflib/154/1/2 : test/test_sparqlstore.py, line 36 (this time it was "HTTP Error 404: File not found")
I think replacing the DBPedia test with the mock server should help alleviate these problems.
I will make an issue and have a look at it when I have time.