I have a simple runtests.py file that does basically the following: import coverage cov = coverage.coverage() cov.start() # run some tests cov.stop() cov.save() cov.html_report() When it gets to cov.html_report() it dumps what's shown in actual results. Reproducible: Always Steps to Reproduce: 1. Run the runtests.py from http://code.google.com/p/ltspice-io/source/checkout (hg clone https://code.google.com/p/ltspice-io/) 2. 3. Actual Results: Traceback (most recent call last): File "app_main.py", line 72, in run_toplevel File "runtests.py", line 41, in <module> cov.html_report() File "/usr/lib64/pypy2.0/site-packages/coverage/control.py", line 659, in html_report return reporter.report(morfs) File "/usr/lib64/pypy2.0/site-packages/coverage/html.py", line 105, in report self.report_files(self.html_file, morfs, self.config.html_dir) File "/usr/lib64/pypy2.0/site-packages/coverage/report.py", line 84, in report_files report_fn(cu, self.coverage._analyze(cu)) File "/usr/lib64/pypy2.0/site-packages/coverage/control.py", line 589, in _analyze return Analysis(self, it) File "/usr/lib64/pypy2.0/site-packages/coverage/results.py", line 18, in __init__ actual_filename, source = self.find_source(self.filename) File "/usr/lib64/pypy2.0/site-packages/coverage/results.py", line 92, in find_source raise NoSource("No source for code: '%s'" % filename) NoSource: No source for code: '/var/tmp/portage/dev-python/pypy-2.0.2/work/pypy-2.0.2-src/lib-python/2.7/_weakrefset.py' Expected Results: An htmlcov report with no error messages.
Old version removed. Please reopen if you can reproduce with the current one.