File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 44from pathlib import Path
55from typing import TYPE_CHECKING , Any
66
7- from docutils .nodes import Body , Node , paragraph
7+ from docutils .nodes import Node , paragraph
88from docutils .parsers .rst .states import RSTState
99from docutils .statemachine import StringList
1010from jinja2 import Environment
Original file line number Diff line number Diff line change 1414
1515@contextmanager
1616def chdir (path : Path ) -> Iterator [None ]:
17+ """Context manager to switch the directory."""
1718 old_cwd = os .getcwd ()
1819 try :
1920 os .chdir (path )
Original file line number Diff line number Diff line change 22
33from pathlib import Path
44
5- import pytest
6-
75TEST_DIR = Path (__file__ ).parent .absolute ()
86ROOT_DIR = TEST_DIR .parent
97DATA_DIR = TEST_DIR / "data"
You can’t perform that action at this time.
0 commit comments