Skip to content

Commit

Permalink
Merge branch 'main' into trig-xfail-GRAPH-only-with-name
Browse files Browse the repository at this point in the history
  • Loading branch information
aucampia committed Jul 5, 2023
2 parents 0f5da49 + afea615 commit c1bbb72
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ types-setuptools = ">=65.6.0.3,<69.0.0.0"
setuptools = ">=65.6.3,<69.0.0"

[tool.poetry.group.docs.dependencies]
sphinx = "^5.3.0"
sphinx = ">=5.3,<7.0"
myst-parser = "^1.0.0"
sphinxcontrib-apidoc = "^0.3.0"
sphinx-autodoc-typehints = "^1.17.1"
Expand Down
3 changes: 3 additions & 0 deletions rdflib/plugins/parsers/trig.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def graph(self, argstr: str, i: int) -> int:

j = i + 1

if self._context is not None:
self.BadSyntax(argstr, i, "Nested graphs are not allowed")

oldParentContext = self._parentContext
self._parentContext = self._context
reason2 = self._reason2
Expand Down
3 changes: 0 additions & 3 deletions test/test_w3c_spec/test_trig_w3c.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,6 @@ def check_entry(entry: ManifestEntry) -> None:
f"{REMOTE_BASE_IRI}#trig-syntax-bad-list-04": pytest.mark.xfail(
reason="ignores badly formed quad"
),
f"{REMOTE_BASE_IRI}#trig-graph-bad-07": pytest.mark.xfail(
reason="accepts nested GRAPH"
),
}


Expand Down
2 changes: 1 addition & 1 deletion test_reports/rdflib_w3c_trig-HEAD.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@
earl:assertedBy <https://github.com/RDFLib/rdflib> ;
earl:mode earl:automatic ;
earl:result [ a earl:TestResult ;
earl:outcome earl:failed ] ;
earl:outcome earl:passed ] ;
earl:subject <https://github.com/RDFLib/rdflib> ;
earl:test <http://www.w3.org/2013/TriGTests/#trig-graph-bad-07> .

Expand Down

0 comments on commit c1bbb72

Please sign in to comment.