Skip to content

Commit

Permalink
Make mypy happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Aug 22, 2023
1 parent c01ca2b commit 3f101b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import pytest
import sphinx

if sphinx.version_info < (7, 2):
from sphinx.testing.path import path as Path
_rootdir = Path(__file__).parent.abspath() / 'roots'
else:
if sphinx.version_info >= (7, 2):
from pathlib import Path
_rootdir = Path(__file__).parent.resolve() / 'roots'
else:
from sphinx.testing.path import path as Path # type: ignore
_rootdir = Path(__file__).parent.abspath() / 'roots' # type: ignore

pytest_plugins = 'sphinx.testing.fixtures'
collect_ignore = ['roots']
Expand Down

0 comments on commit 3f101b3

Please sign in to comment.