-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
DeprecationWarning: You passed a bytestring as filenames
#530
Comments
@mohierf What version of Python are you running under? Can you try upgrading to the latest version of coverage.py (4.2)? |
@mohierf Can you give me a link to one of your failing Travis builds? It seems like there's a warning flag enabled that isn't on by default? |
Original comment by mohierf (Bitbucket: mohierf, GitHub: mohierf) Of course: https://travis-ci.org/Alignak-monitoring/alignak/jobs/173902832 In this build:
You will note that the report result seems not ok: 13 % ! With my current test suite, where I run nosetests with its coverage plugin I get 70% ! |
Thanks, I can see that this line is in the Travis job:
Aren't you bothered by the slew of other warnings you're getting? Why enable all these warnings? I don't need Python to tell me that my Python 2 code will behave differently in Python 3. I've already accounted for that. |
Turns out the warning is from a configparser backport. I've switched the imports to avoid that module, and now the warning is gone. Fixed in f8e9d62f1412 (bb) |
This fix was released as part of Coverage.py 4.3. |
Originally reported by Anonymous
I am using coverage (version 4.0) with nose (1.3.7) for my test suite on Travis CI.
Every time I am using the coverage script (erase, run, report, ...) I get this error raised:
I do not understand what it means and where it comes from ...
I run this command:
My coverage configuration file is:
My nose configuration file is:
The text was updated successfully, but these errors were encountered: