Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

change pytest.skip to pytest.xfail #1799

Merged
merged 3 commits into from Apr 12, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/test_dawg.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def update_test(t: RDFTest):
query_path: PurePath = file_uri_to_path(query)

if uri in skiptests:
pytest.skip()
pytest.xfail()

try:
g = Dataset()
Expand Down Expand Up @@ -359,7 +359,7 @@ def query_test(t: RDFTest):
resfile_path = file_uri_to_path(resfile) if resfile else None

if uri in skiptests:
pytest.skip()
pytest.xfail()

def skip(reason="(none)"):
print("Skipping %s from now on." % uri)
Expand Down
2 changes: 1 addition & 1 deletion test/test_parsers/test_swap_n3.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __repr__(self):
def generictest(e):
"""Documentation"""
if e.skip:
pytest.skip("%s skipped, known issue" % e.name)
pytest.xfail("%s skipped, known issue" % e.name)
g = rdflib.Graph()
for i in [rdf, rdfs, xsd, owl, test, n3test, rdft, triage, mf, qt]:
g.bind(str(i), i)
Expand Down