Skip to content

Commit

Permalink
tests: Fix checking temporary paths on MacOs runners
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Feb 10, 2024
1 parent 356305f commit 525f7b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/griffe/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ class TmpPackage:
path: Path
"""The package path."""

def __post_init__(self) -> None:
self.tmpdir = self.tmpdir.resolve()


@contextmanager
def temporary_pyfile(code: str, *, module_name: str = "module") -> Iterator[tuple[str, Path]]:
Expand Down

0 comments on commit 525f7b8

Please sign in to comment.