Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492954 - dev-python/coverage-3.7 - html_report() fails with dev-python/pypy-2.0.2
Summary: dev-python/coverage-3.7 - html_report() fails with dev-python/pypy-2.0.2
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-30 15:31 UTC by Alex Orange
Modified: 2020-03-26 20:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Orange 2013-11-30 15:31:13 UTC
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.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-26 20:39:38 UTC
Old version removed.  Please reopen if you can reproduce with the current one.