Skip to content
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

"Can't find program" exceptions are shown in an ugly way #23

Closed
nedbat opened this issue Sep 13, 2009 · 3 comments
Closed

"Can't find program" exceptions are shown in an ugly way #23

nedbat opened this issue Sep 13, 2009 · 3 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Sep 13, 2009

If you use "coverage run xyzzy.py" and xyzzy.py isn't found, the exception shows stack frames from coverage.py itself:

C:\ned\coverage\trunk> coverage run xyzzy.py
Traceback (most recent call last):
  File "c:\Python25\Scripts\coverage-script.py", line 8, in <module>
    load_entry_point('coverage==3.0.1', 'console_scripts', 'coverage')()
  File "C:\ned\coverage\trunk\coverage\cmdline.py", line 504, in main
    return CoverageScript().command_line(sys.argv[1:])
  File "C:\ned\coverage\trunk\coverage\cmdline.py", line 388, in command_line
    self.run_python_file(args[0], args)
  File "C:\ned\coverage\trunk\coverage\execfile.py", line 35, in run_python_file
    source = open(filename, 'rU').read()
IOError: [Errno 2] No such file or directory: 'xyzzy.py'

@nedbat
Copy link
Owner Author

nedbat commented Oct 25, 2009

Fixed in <<changeset 5ae8bd351d4a (bb)>>

@nedbat
Copy link
Owner Author

nedbat commented Feb 25, 2010

Removing version: 3.0.1 (automated comment)

@nedbat
Copy link
Owner Author

nedbat commented Dec 11, 2016

Add Python 3.5 CI
fixes #23

→ <<cset 4b095cd90ed9 (bb)>>

@nedbat nedbat closed this as completed Dec 11, 2016
@nedbat nedbat added major bug Something isn't working labels Jun 23, 2018
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