Skip to content

Commit

Permalink
ignore false 'no attribute' error
Browse files Browse the repository at this point in the history
  • Loading branch information
Cielquan authored Mar 3, 2024
1 parent c51cc9b commit e25a0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/_sphinx_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_yield_nothing_with_sphinx_missing() -> None:
with _sphinx.load_sphinx_if_available() as ctx_manager:
assert ctx_manager is None
assert not docutils_directives._directives
assert not docutils_roles._roles
assert not docutils_roles._roles # type: ignore[attr-defined]

@staticmethod
@pytest.mark.skipif(not _extras.SPHINX_INSTALLED, reason="Depends on sphinx extra.")
Expand All @@ -43,7 +43,7 @@ def test_yield_nothing_with_sphinx_installed() -> None:
with _sphinx.load_sphinx_if_available() as ctx_manager:
assert ctx_manager is None
assert docutils_directives._directives
assert docutils_roles._roles
assert docutils_roles._roles # type: ignore[attr-defined]
assert "sphinx.addnodes" not in sphinx.application.builtin_extensions


Expand Down

0 comments on commit e25a0d8

Please sign in to comment.