From a91b16ecc885da925933a73a594c3a252ebbc87c Mon Sep 17 00:00:00 2001 From: Vidar Tonaas Fauske Date: Thu, 20 Oct 2022 16:54:58 +0100 Subject: [PATCH] Allow Windows drives in filename This allows the colon (:) in the drive specifier on Windows to be included into the filepath match. --- src/pytest_mypy_testing/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pytest_mypy_testing/message.py b/src/pytest_mypy_testing/message.py index 2997ad7..c47fc49 100644 --- a/src/pytest_mypy_testing/message.py +++ b/src/pytest_mypy_testing/message.py @@ -74,7 +74,7 @@ class Message: ) OUTPUT_RE = re.compile( - r"^(?P[^:]+):" + r"^(?P([a-zA-Z]:)?[^:]+):" r"(?P[0-9]+):" r"((?P[0-9]+):)?" r" *(?P(error|note|warning)):"