Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix an INTERNAL ERROR when creating cobertura output for namespace package#20112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ilevkivskyi merged 2 commits intopython:masterfromwyattscarpenter:cobcrash
Oct 27, 2025
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
add failing test testReportCoberturaCrashOnNamespacePackages
  • Loading branch information
@wyattscarpenter
wyattscarpenter committedOct 24, 2025
commit4d3d7f47ebce9ee27d6ae87c34c8941c438cf353
34 changes: 34 additions & 0 deletionstest-data/unit/reports.test
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -547,3 +547,37 @@ namespace_packages = True
</table>
</body>
</html>

[case testReportCoberturaCrashOnNamespacePackages]
# cmd: mypy --cobertura-xml-report report -p folder
-- Regression test for https://github.com/python/mypy/issues/19843
[file folder/subfolder/something.py]
-- This output is not important, but due to the way tests are run we need to check it.
[outfile report/cobertura.xml]
<coverage timestamp="$TIMESTAMP" version="$VERSION" line-rate="1.0" branch-rate="0" lines-covered="0" lines-valid="0">
<sources>
<source>$PWD</source>
</sources>
<packages>
<package complexity="1.0" name="folder" branch-rate="0" line-rate="1.0">
<classes>
<class complexity="1.0" filename="folder" name="folder" branch-rate="0" line-rate="1.0">
<methods/>
<lines/>
</class>
<class complexity="1.0" filename="folder/subfolder" name="subfolder" branch-rate="0" line-rate="1.0">
<methods/>
<lines/>
</class>
</classes>
</package>
<package complexity="1.0" name="folder.subfolder" branch-rate="0" line-rate="1.0">
<classes>
<class complexity="1.0" filename="folder/subfolder/something.py" name="something.py" branch-rate="0" line-rate="1.0">
<methods/>
<lines/>
</class>
</classes>
</package>
</packages>
</coverage>
Loading

[8]ページ先頭

©2009-2025 Movatter.jp