Coverage annotation ignores absolute paths

Issue #321 duplicate
Greg Toombs
created an issue

When all of my source paths are absolute, annotation produces no results.

The monkeypatch fix is:

import os
import coverage.files
coverage.files.FileLocator.relative_filename = lambda self,filename: os.path.relpath(filename, self.relative_dir)

Comments (1)

  1. Log in to comment