Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Numerous tests fail with _pytest.outcomes.XFailed and other issues #156

Open
TheChymera opened this issue May 9, 2024 · 4 comments
Open
Assignees

Comments

@TheChymera
Copy link

Full build and test log here: https://ppb.chymera.eu/9bac47.html

Any ideas what could be going on?

@TheChymera
Copy link
Author

This is a list of the affected test groups, 551 in total:

    src/prov/tests/test_model.py::TestAttributesBase
    src/prov/tests/test_rdf.py::TestStatementsBase
    src/prov/tests/test_rdf.py::TestAttributesBase2
    src/prov/tests/test_rdf.py::TestQualifiedNamesBase
    src/prov/tests/test_rdf.py::TestAttributesBase
    src/prov/tests/test_model.py::TestStatementsBase
    src/prov/tests/test_model.py::TestExamplesBase::test_all_examples
    src/prov/tests/test_model.py::TestQualifiedNamesBase
    src/prov/tests/test_rdf.py::RoundTripRDFTests::test_namespace_inheritance
    src/prov/tests/test_rdf.py::RoundTripRDFTests::test_default_namespace_inheritance
    src/prov/tests/test_rdf.py::TestRDFSerializer::test_json_to_ttl_match
    src/prov/tests/test_rdf.py::TestJSONExamplesBase::test_all_examples
    src/prov/tests/test_rdf.py::TestExamplesBase::test_all_examples

@trungdong trungdong self-assigned this May 10, 2024
@trungdong
Copy link
Owner

@TheChymera Thank you for reporting. My first guess is it was caused by some incompatibility with the rdflib version used in the above tests. I have a look at this over the weekend.

@TheChymera
Copy link
Author

@trungdong oh, thanks for looking into this. I thought this was more of a shot in the dark since the repo hasn't been updated in a while, but happy to see that it's still alive!

Also, the rest of the tests (more than half) pass with pytest on python 3.11.

@trungdong
Copy link
Owner

Full build and test log here: https://ppb.chymera.eu/9bac47.html

@TheChymera In your test log, you were using pytest: python3.11 -m pytest

The library uses unittest test cases. Please run the tests with python -m unittest instead.

Note that I also discovered that two test cases are failing due to incompatibility with version 7.x of the rdflib package. I'll restrict the package's version to <7 soon, but you might want to manually specify that if you want all tests to pass.

trungdong added a commit that referenced this issue May 11, 2024
The following test cases in prov/tests/qnames.py failed with rdflib.7.0.0:
- test_namespace_inheritance
- test_default_namespace_inheritance
(found in issue #156)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants