Adapt for pytest and add back import of os in rdflib/parser.py by aucampia · Pull Request #1480 · RDFLib/rdflib (original) (raw)

test/jsonld/test_onedotone.py got a bit messed up with a merge from
master. Looking at the original changes from @ashleysommer, all he did
was change a condition. This applies the same change but essentially
rebased on master.

For comparison see: ab31c5e...c4b679f

Also add back import os in rdflib/parser.py

This is now needed after #1441 was
merged.