summaryrefslogtreecommitdiff
path: root/coverage/execfile.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Update handling of sys.excepthook to only call custom excepthooks and ↵Andrew Hoos2016-11-291-1/+6
| | | | | | | | re-raise exceptions
| * Explicitely call sys.excepthookAndrew Hoos2016-11-291-2/+1
| | | | | | | | https://bitbucket.org/ned/coveragepy/issues/535/sysexcepthook-is-not-called
* | Provide a more useful error message if failing to run a non-Python file. #514Ned Batchelder2016-12-171-6/+12
|/
* Fix explicit imports of __init__. #410Ned Batchelder2015-10-131-1/+1
|
* Protect ourselves from mock'ed os. #416Ned Batchelder2015-10-061-1/+3
|
* Support directories on the 'coverage run' command line. #252Ned Batchelder2015-08-011-6/+17
|
* Merged in traff/coverage.py (pull request #50)Ned Batchelder2015-08-011-0/+10
|\ | | | | | | Look for __main__ module if coverage is being run for directory #252
| * Look for __main__ module if coverage is being run for directory #252Dmitry Trofimov2015-04-141-0/+10
| |
* | Add license mention to the top of all files. #313.Ned Batchelder2015-07-241-0/+3
| |
* | All Python source is Unicode internally.Ned Batchelder2015-05-171-1/+2
|/ | | | | Unfortunately, this meant hacking around a silly Python 2 restriction (can't compile a Unicode string containing an encoding declaration).
* Move python source understanding into python.pyNed Batchelder2015-01-011-1/+1
|
* A few more filenames as %s instead of %rNed Batchelder2014-12-281-1/+1
|
* Don't use %r for filenames, on windows, the backslashes go nuts.Ned Batchelder2014-12-281-1/+1
|
* Further consolidation of code reading Python source.Ned Batchelder2014-12-281-8/+3
|
* Unify and clarify reading Python source. Probably broke .pyw filesNed Batchelder2014-12-261-5/+2
|
* Move some code, and fix pep8 thingsNed Batchelder2014-12-141-3/+6
|
* For some reason, lowercase 'python' suddenly struck me as odd-looking. Fix ↵Ned Batchelder2014-12-121-2/+2
| | | | them.
* Cleanups from pull request 42Ned Batchelder2014-11-241-8/+8
|
* Merged pull request 42, fixing issue #328.Ned Batchelder2014-11-241-2/+20
|\
| * they changed the way __loader__ looks in 3.3Buck Golemon2014-11-141-1/+7
| | | | | | | | | | | | --HG-- branch : __main__-support extra : amend_source : 7abd8465667b4bd4b3eeac24391c27c68edf9a95
| * shim for pep302 __loader__Buck Golemon2014-11-141-2/+14
| | | | | | | | | | | | --HG-- branch : __main__-support extra : histedit_source : f07b26f0cfc575d81972546f1b7ae2ece84e2d87
* | Upgraded pylint to 1.4, removed useless suppressionsNed Batchelder2014-11-231-1/+0
|/
* Fix a weird PyPy3 problem with a weird PyPy3 fix.Ned Batchelder2014-10-281-0/+7
|
* Avoid a bunch of deprecated functions.Ned Batchelder2014-05-171-4/+4
|
* Remove an unneeded backward function, and move BUILTINS into backwardNed Batchelder2014-05-171-16/+2
|
* Refactor execfile to avoid imp to avoid deprecation warningsNed Batchelder2014-05-161-37/+79
|
* Refactoring, asymptotically approaching multi-languageNed Batchelder2014-05-041-2/+2
|
* No need for paren-less exec any more.Ned Batchelder2013-12-141-4/+4
|
* Except clause can now use 'as', no need for lots of sys.exc_infoNed Batchelder2013-10-201-2/+1
| | | | | --HG-- branch : 4.0
* try/except/finally is ok now.Ned Batchelder2013-10-201-28/+27
| | | | | --HG-- branch : 4.0
* with statements: no more finally closeNed Batchelder2013-10-201-6/+2
| | | | | --HG-- branch : 4.0
* Now I can use tuples with startswith and endswith.Ned Batchelder2013-10-191-1/+1
| | | | | --HG-- branch : 4.0
* Line too long.Ned Batchelder2013-09-281-2/+2
|
* Thanks, Windows, for reminding me to close my files!Ned Batchelder2013-09-281-14/+18
|
* Now we can run .pyc files directly. Closes #264.Ned Batchelder2013-09-281-19/+53
|
* Get sys.path right when running modules with -m, fixes #207 and #242.Ned Batchelder2013-04-201-7/+2
|
* A work-in-progress for #207, a minor improvement, and a commented-out test ↵Ned Batchelder2012-11-081-1/+1
| | | | that shows the problem.
* Make stuff work in other Python versions. Some stuff isn't *quite* right ↵Ned Batchelder2011-10-301-1/+2
| | | | <2.6. #155
* Make execution with -m match Python more closely.Ned Batchelder2011-10-301-1/+5
|
* The current directory auto-inserted into sys.path is now absolute, to better ↵Ned Batchelder2011-05-211-1/+1
| | | | mimic Python execution.
* Got 2.3 to build, so now this is tested and works against 2.3Ned Batchelder2011-03-251-1/+7
|
* Add tests and doc for Brandon's -m flag.Ned Batchelder2011-02-061-27/+41
|
* Wrote the basic logic for running a Python module or package as __main__.Brandon Craig Rhodes2011-02-021-1/+37
|
* A couple more places to use open_source instead of open(fname, 'rU')Ned Batchelder2011-01-301-2/+2
|
* Open source files with the proper encoding.Brett Cannon2011-01-281-1/+6
|
* If the user's code calls sys.exit(), honor the request and exit with that ↵Ned Batchelder2010-02-281-0/+4
| | | | status. Fixes issue #50.
* Python source files that don't end with a newline can now be executed, ↵Ned Batchelder2010-02-221-2/+8
| | | | fixing #47.
* If the product code throws an exception, 'coverage run' now produces the ↵Ned Batchelder2010-02-191-2/+14
| | | | same traceback as 'python' would, without the coverage-internal frames distracting from your code.
* Massive eol whitespace clean-up.Ned Batchelder2009-12-021-3/+3
|
* Report errors finding source files to execute more nicely. Fixes issue #23.Ned Batchelder2009-10-251-1/+5
|