Skip to content

Reporting on an empty .coverage raises ValueErrror #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nedbat opened this issue Apr 25, 2009 · 2 comments
Closed

Reporting on an empty .coverage raises ValueErrror #3

nedbat opened this issue Apr 25, 2009 · 2 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Apr 25, 2009

$ coverage -e
$ coverage -r
Traceback (most recent call last):
  File "c:\Python25\Scripts\coverage-script.py", line 8, in <module>
    load_entry_point('coverage==3.0b2', 'console_scripts', 'coverage')()
  File "c:\ned\coverage\trunk\coverage\cmdline.py", line 169, in main
    return CoverageScript().command_line(sys.argv[1:])
  File "c:\ned\coverage\trunk\coverage\cmdline.py", line 156, in command_line
    reporter.report(args, omit_prefixes=omit)
  File "c:\ned\coverage\trunk\coverage\summary.py", line 21, in report
    max_name = max(5, max(map(lambda cu: len(cu.name), self.code_units)))
ValueError: max() arg is an empty sequence

@nedbat
Copy link
Owner Author

nedbat commented May 12, 2009

Fixed in <<changeset 2133c70d8fc0 (bb)>>

@nedbat nedbat closed this as completed May 12, 2009
@nedbat
Copy link
Owner Author

nedbat commented Jun 14, 2009

Removing version: 3.0b2 (automated comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant