Skip to content

Commit 616aa72

Browse files
committed
fix test
1 parent 146a600 commit 616aa72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,8 @@ def parse_file(self, *, temporary: bool = False) -> None:
21432143
raise CompileError(
21442144
[
21452145
"mypy: can't read file '{}': {}".format(
2146-
self.path, os.strerror(ioerr.errno)
2146+
self.path.replace(os.getcwd() + os.sep, ""),
2147+
os.strerror(ioerr.errno),
21472148
)
21482149
],
21492150
module_with_blocker=self.id,

0 commit comments

Comments
 (0)