Skip to content

Commit b155824

Browse files
vidartfdavidfritzsche
authored andcommitted
Allow Windows drives in filename
This allows the colon (:) in the drive specifier on Windows to be included into the filepath match.
1 parent c867b09 commit b155824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytest_mypy_testing/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Message:
7474
)
7575

7676
OUTPUT_RE = re.compile(
77-
r"^(?P<fname>[^:]+):"
77+
r"^(?P<fname>([a-zA-Z]:)?[^:]+):"
7878
r"(?P<lineno>[0-9]+):"
7979
r"((?P<colno>[0-9]+):)?"
8080
r" *(?P<severity>(error|note|warning)):"

0 commit comments

Comments
 (0)