diff --git a/stestr/pytest_subunit.py b/stestr/pytest_subunit.py index 9df7c90..2888108 100644 --- a/stestr/pytest_subunit.py +++ b/stestr/pytest_subunit.py @@ -29,13 +29,13 @@ from subunit import StreamResultToBytes -def to_path(testid: str) -> pathlib.PosixPath: +def to_path(testid: str) -> pathlib.Path: delim = "::" if delim in testid: path = testid.split(delim)[0] else: path = testid - return pathlib.PosixPath(path).resolve() + return pathlib.Path(path).resolve() # hook