summaryrefslogtreecommitdiff
path: root/coverage/execfile.py
Commit message (Collapse)AuthorAgeFilesLines
* style: double quotesNed Batchelder2023-03-221-5/+5
|
* build: run mypy by default, and fix "unused" errors from updated mypyNed Batchelder2023-03-071-1/+1
|
* mypy: execfile.pyNed Batchelder2023-01-101-16/+36
|
* fix: isolate user code from coverage.py internal code flags. #1524Ned Batchelder2023-01-091-1/+1
|
* mypy: use __future__ uniformly in checked filesNed Batchelder2023-01-051-0/+2
|
* refactor: no need for special handling of compiling unicode sourceNed Batchelder2022-11-061-3/+1
| | | | This was a holdover from Python 2 days.
* refactor: remove code that was only needed for Python 3.6Ned Batchelder2021-12-311-15/+8
|
* refactor: super-nit-picky tweaks from mypyNed Batchelder2021-11-211-1/+1
|
* docs: document the exceptionsNed Batchelder2021-11-141-2/+2
| | | | ... and make some of them private.
* style: convert more string formatting to f-stringsNed Batchelder2021-11-111-1/+1
|
* test: add more tests of run_python_fileNed Batchelder2021-10-111-4/+2
| | | | | | The tests in test_process run the exception handling in execfile.py, but only under coverage, so metacov can't see it. These smaller tests exercise the code without coverage on top.
* style: prefer explicit string concatenationNed Batchelder2021-10-101-3/+2
|
* fix: correct previous refactoringsNed Batchelder2021-07-281-4/+4
| | | | | File names should not be rendered with !r, since on Windows that will produce double backslashes, which only confuses people.
* refactor: convert %-strings to f-stringsNed Batchelder2021-07-281-2/+2
|
* fix: raise chained errors with "from" #998Ned Batchelder2021-07-201-8/+8
| | | | | | This makes exceptions report their causes correctly, as "The above exception was the direct cause of the following exception" instead of "During handling of the above exception, another exception occurred."
* fix: Python 3.8.10 changed how __file__ is reported when running directoriesNed Batchelder2021-05-111-0/+5
|
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+2
|
* refactor: pyupgrade --py36-plus coverage/*.pyNed Batchelder2021-05-021-6/+6
|
* refactor: move the remaining backward.py code, no more backward.pyNed Batchelder2021-05-011-67/+23
|
* refactor: remove some unneeded behavior conditionalsNed Batchelder2021-05-011-3/+2
|
* refactor: remove yet more unneeded backward.py shimsNed Batchelder2021-05-011-9/+8
| | | | | | | | Gone are: - PYC_MAGIC_NUMBER - code_object - SimpleNamespace
* refactor: remove more unneeded backward.py shimsNed Batchelder2021-05-011-2/+1
| | | | | | | | | | | | | | Gone are: - iitems - litems - iternext - to_bytes - to_string - binary_bytes - byte_to_int - bytes_to_ints - BUILTINS
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-5/+1
|
* Refine the conditions for tweaking sys.path[0]. Fixes #862Ned Batchelder2020-01-111-9/+18
|
* Don't import anything before start(). Fixes #909.Ned Batchelder2020-01-031-21/+31
|
* Python 3.9a2 reverted how argv[0] is handledNed Batchelder2019-12-211-1/+0
|
* Adapt to 3.9's way of reporting files using absolute paths.Ned Batchelder2019-11-251-1/+6
|
* Report file names the way Python does: '{}', not {!r}Ned Batchelder2019-11-251-1/+1
|
* Implement __spec__ for files we run. #745 #838Ned Batchelder2019-11-241-15/+40
|
* Linux tests are runnableNed Batchelder2019-11-071-1/+1
| | | | PYTHONPYCACHEPREFIX makes the tests 10% faster on 3.8
* Clarify two functionsNed Batchelder2019-11-011-0/+4
|
* 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
| |