From 23f160e922faa58c8739b4784b2e34ecf78a5189 Mon Sep 17 00:00:00 2001 From: David Linke Date: Wed, 29 Mar 2023 10:21:42 +0200 Subject: [PATCH] Fix temporary dir paths on windows --- tests/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 6f150c6..84ac256 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,4 @@ +from pathlib import Path from typing import Any, Dict, Generator, List import attr @@ -442,7 +443,7 @@ def fixture_labels_file_content() -> Dict[str, Any]: def fixture_labels_file_write(tmpdir: Any) -> str: """Return a filepath to a temporary file.""" labels_file = tmpdir.join("labels.toml") - return str(labels_file) + return Path(labels_file).as_posix() @pytest.fixture(name="labels_file_load")