A RetroSearch Logo

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

Search Query:

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

os.chdir() causes .coverage file misplacement · Issue #24 · nedbat/coveragepy · GitHub

Originally reported by schafer (Bitbucket: schafer, GitHub: schafer)

The following file contents will produce an empty coverage report (create directory "testsub" first):

Issue tested and exists in both 3.01 and 2.80-2 (current for Ubuntu 9.04 repository).

Workaround: specify an absolute file location via COVERAGE_FILE. This provides correct output in 3.01, but not in 2.80-2.

Adjusting the .coverage filename to include an absolute path via something like filename = os.path.join( os.path.abspath( os.path.split(filename)[0]), os.path.split(filename)[1]) would probably resolve.


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