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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest
warnings in builds
#10563
Comments
Okay so I spent good time understanding the issue and I have come to the conclusion that it is an issue with the It arises due to the |
There are multiple solutions to this:
|
I tried to implement the code without using any external libraries, it seems that the warnings still popup. |
@Saswatsusmoy I have tried using the code just by commenting out the |
To reiterate, we are talking about the warnings in the PyTest Code Coverage part. |
CoverageWarning indicating that coverage couldn't parse or locate source code for specified files like config-3.py and config.py, you should first confirm that the file paths are accurate, validate that the source code files exist in your project directory, ensure they are in paths covered by the analysis, and check your coverage configuration (e.g., .coveragerc) to include the relevant source paths. Double-check that you are running tests or coverage analysis from the correct directory where the source files reside, check for file permission issues, update coverage, and verify the Python environment setup. If problems persist, review filenames for typos or case sensitivity and consider seeking assistance from your development team or relevant forums. |
|
Repository commit
Doesn't matter
Python version (python --version)
Python 3.12.0, the current version used in builds
Dependencies version (pip freeze)
Doesn't matter
Expected behavior
pytest
runs with no (internal) warningsActual behavior
Every build (see our Actions tab) has the following warnings:
I don't know what files these are, and I don't know what's causing these warnings to occur.
The text was updated successfully, but these errors were encountered: