A RetroSearch Logo

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

Search Query:

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

You passed a bytestring as `filenames` · Issue #530 · nedbat/coveragepy · GitHub

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:

coverage run --rcfile=.coveragerc -m nose -c .noserc
/home/travis/virtualenv/python2.7.12/lib/python2.7/site-packages/coverage/config.py:27: DeprecationWarning: You passed a bytestring as `filenames`. This will not work on Python 3. Use `cp.read_file()` or switch to using Unicode strings across the board.
  return configparser.RawConfigParser.read(self, filename, **kwargs)

I do not understand what it means and where it comes from ...

I run this command:

coverage run --rcfile=.coveragerc -m nose -c .noserc

My coverage configuration file is:

[report]
;fail_under = 100
exclude_lines =
    pragma: no cover
    def __repr__
    if self.debug:
    if settings.DEBUG
    raise AssertionError
    raise NotImplementedError
    if 0:
    if __name__ == .__main__.:

[run]
branch = True
source =
    alignak

omit =
    */mock/*
    */nose/*

[paths]
source =
    /home/travis/build/Alignak-monitoring/alignak/alignak

My nose configuration file is:

[nosetests]
verbosity=3
; Uncomment to have the stdout
;nocapture=1
; Uncomment to remove the python logger from output (except for console logs)
;nologcapture=1

; Only 1 running test process
processes=1
; Process timeout is 5 minutes
process-timeout=300
; Restart worker process (avoid memory leak)
process-restartworker=1

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