summaryrefslogtreecommitdiff
path: root/coverage/execfile.py
Commit message (Collapse)AuthorAgeFilesLines
* Add tests of bug #806, and ensure it's fixed even if the program ends with ↵Ned Batchelder2019-07-061-4/+5
| | | | an exception
* Return to the original directory after exec'ing a fileDan Hemberger2019-07-061-0/+4
| | | | | | | | | | If the file that is exec'd chdirs to a directory that doesn't exist at the end of the execution, then we will fail to connect to the SQLite database (due to a failing `os.getcwd` command). We can easily fix this if we ensure we are in a directory that exists after executing the foreign code. Returning to the original directory seems to be a sensible choice.
* Use pylint 2.xNed Batchelder2019-05-131-2/+2
|
* Move more PYVERSION to be PYBEHAVIORNed Batchelder2019-03-241-5/+1
|
* Move some version conditionals to PYBEHAVIORNed Batchelder2019-03-241-2/+2
|
* PyRunner knows how to run Python files.Ned Batchelder2018-11-251-76/+102
| | | | Adjust sys.path to better emulate Python, but only if we should.
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Make version checking more uniformNed Batchelder2018-06-131-4/+5
|
* Adapt to the 3.7.0b3 change in -m sys.path[0] behaviorNed Batchelder2018-03-311-1/+9
|
* Fine tune some moreNed Batchelder2018-01-131-1/+1
|
* Fine-tune the 3.7 decisionsNed Batchelder2018-01-131-1/+1
|
* Python 3.7 tweaked the layout of .pyc filesNed Batchelder2018-01-101-5/+14
|
* Suppress the coverage.py frame when reporting exceptionsNed Batchelder2016-12-261-0/+2
|
* Make excepthook execution more accurate. Pypy tests failingNed Batchelder2016-12-261-4/+12
|
* Merged in andrewhoos/coverage.py (pull request #93)Ned Batchelder2016-12-261-1/+11
|\ | | | | | | Explicitely call sys.excepthook
| * Update change with tests and fixes for testsAndrew Hoos2016-11-301-8/+9
| |
| * Remove the unused importAndrew Hoos2016-11-291-1/+0
| |
| * Limit changes to only execfile.pyAndrew Hoos2016-11-291-1/+0
| |
| * Update code to better handle calling sys.excepthook when it throwsAndrew Hoos2016-11-291-1/+8
| |
| * 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