A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nedbat/coveragepy/issues/1383 below:

With python 3 modules are importable even without __init__.py · Issue #1383 · nedbat/coveragepy · GitHub

With https://peps.python.org/pep-0420/ - released with python 3.3 it is no longer required to create an empty __init__.py file.

However Coverage still skips folders without an __init__.py

coveragepy/coverage/files.py

Line 409 in 0aa1070

if i > 0 and '__init__.py' not in filenames:

This causes unexpected results for the total coverage as valid python code is not included in the total coverage!

rel: pytest-dev/pytest-cov#88 (comment)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4