FIX: Where

This commit is contained in:
Eric Larson 2024-07-02 18:31:40 -04:00
parent ee97c98d39
commit ac8da5b8d7
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ def check_ispytest(ispytest: bool) -> None:
def _warn_auto_stacklevel(message: Warning | str, category: Any = UserWarning) -> None:
"""Emit a warning with trace outside the pytest namespace."""
root_dir = Path(__file__).parents[1]
root_dir = Path(__file__).parent
frame = inspect.currentframe()
fname, lineno = "unknown", 0
while frame: