test: convert test/jsonld/test_util.py to pytest by aucampia · Pull Request #1961 · RDFLib/rdflib (original) (raw)

Summary of changes

Not the most straight forward conversion, but it simplifies it somewhat.

Main reason for doing this is to remove the use of unittest.subTest as
we need pytest-subtest to process that with pytest and that dependency
is causing some complications in dependency solving for pip sometimes.

Cleaner diff can be obtained by hiding whitespaces: https://github.com/RDFLib/rdflib/pull/1961/files?diff=split&w=1

Checklist