Skip to content

Commit 76111f0

Browse files
add failing test, testReportIsADirectoryErrorCrashOnNamespacePackages
A regression test for the internal crash #19843
1 parent fb16e93 commit 76111f0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test-data/unit/reports.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,3 +547,11 @@ namespace_packages = True
547547
</table>
548548
</body>
549549
</html>
550+
551+
[case testReportIsADirectoryErrorCrashOnNamespacePackages]
552+
# cmd: mypy --linecoverage-report report -p folder
553+
--Regression test for https://github.com/python/mypy/issues/18128
554+
-- "IsADirectoryError for namespace packages when using --linecoverage-report"
555+
[file folder/subfolder/something.py]
556+
class Something:
557+
pass

0 commit comments

Comments
 (0)