Add @expectedFailure unit tests for #1294 and type annotations for compare.py by aucampia · Pull Request #1346 · RDFLib/rdflib (original) (raw)

@rob-metalinkage I added some better explanations for the tests, and tests names are also more descriptive and not issue specific.

Again this does not fix the problem, but it sets constraints on what a fix for this issue should do. The hope is that it makes it easier for whoever looks at this later.

I may look at this again in the future myself, but this at least provides a very minimal test that should pass which makes the issue easier to pinpoint, and together with type annotations makes it easier for me to see what the intent was of the original author.