Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | build: run mypy by default, and fix "unused" errors from updated mypy | Ned Batchelder | 2023-03-07 | 1 | -1/+1 |
| | |||||
* | mypy: execfile.py | Ned Batchelder | 2023-01-10 | 1 | -16/+36 |
| | |||||
* | fix: isolate user code from coverage.py internal code flags. #1524 | Ned Batchelder | 2023-01-09 | 1 | -1/+1 |
| | |||||
* | mypy: use __future__ uniformly in checked files | Ned Batchelder | 2023-01-05 | 1 | -0/+2 |
| | |||||
* | refactor: no need for special handling of compiling unicode source | Ned Batchelder | 2022-11-06 | 1 | -3/+1 |
| | | | | This was a holdover from Python 2 days. | ||||
* | refactor: remove code that was only needed for Python 3.6 | Ned Batchelder | 2021-12-31 | 1 | -15/+8 |
| | |||||
* | refactor: super-nit-picky tweaks from mypy | Ned Batchelder | 2021-11-21 | 1 | -1/+1 |
| | |||||
* | docs: document the exceptions | Ned Batchelder | 2021-11-14 | 1 | -2/+2 |
| | | | | ... and make some of them private. | ||||
* | style: convert more string formatting to f-strings | Ned Batchelder | 2021-11-11 | 1 | -1/+1 |
| | |||||
* | test: add more tests of run_python_file | Ned Batchelder | 2021-10-11 | 1 | -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 concatenation | Ned Batchelder | 2021-10-10 | 1 | -3/+2 |
| | |||||
* | fix: correct previous refactorings | Ned Batchelder | 2021-07-28 | 1 | -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-strings | Ned Batchelder | 2021-07-28 | 1 | -2/+2 |
| | |||||
* | fix: raise chained errors with "from" #998 | Ned Batchelder | 2021-07-20 | 1 | -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 directories | Ned Batchelder | 2021-05-11 | 1 | -0/+5 |
| | |||||
* | refactor: move exceptions to their own module | Ned Batchelder | 2021-05-02 | 1 | -1/+2 |
| | |||||
* | refactor: pyupgrade --py36-plus coverage/*.py | Ned Batchelder | 2021-05-02 | 1 | -6/+6 |
| | |||||
* | refactor: move the remaining backward.py code, no more backward.py | Ned Batchelder | 2021-05-01 | 1 | -67/+23 |
| | |||||
* | refactor: remove some unneeded behavior conditionals | Ned Batchelder | 2021-05-01 | 1 | -3/+2 |
| | |||||
* | refactor: remove yet more unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 1 | -9/+8 |
| | | | | | | | | Gone are: - PYC_MAGIC_NUMBER - code_object - SimpleNamespace | ||||
* | refactor: remove more unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 1 | -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 py3 | Ned Batchelder | 2021-05-01 | 1 | -5/+1 |
| | |||||
* | Refine the conditions for tweaking sys.path[0]. Fixes #862 | Ned Batchelder | 2020-01-11 | 1 | -9/+18 |
| | |||||
* | Don't import anything before start(). Fixes #909. | Ned Batchelder | 2020-01-03 | 1 | -21/+31 |
| | |||||
* | Python 3.9a2 reverted how argv[0] is handled | Ned Batchelder | 2019-12-21 | 1 | -1/+0 |
| | |||||
* | Adapt to 3.9's way of reporting files using absolute paths. | Ned Batchelder | 2019-11-25 | 1 | -1/+6 |
| | |||||
* | Report file names the way Python does: '{}', not {!r} | Ned Batchelder | 2019-11-25 | 1 | -1/+1 |
| | |||||
* | Implement __spec__ for files we run. #745 #838 | Ned Batchelder | 2019-11-24 | 1 | -15/+40 |
| | |||||
* | Linux tests are runnable | Ned Batchelder | 2019-11-07 | 1 | -1/+1 |
| | | | | PYTHONPYCACHEPREFIX makes the tests 10% faster on 3.8 | ||||
* | Clarify two functions | Ned Batchelder | 2019-11-01 | 1 | -0/+4 |
| | |||||
* | Add tests of bug #806, and ensure it's fixed even if the program ends with ↵ | Ned Batchelder | 2019-07-06 | 1 | -4/+5 |
| | | | | an exception | ||||
* | Return to the original directory after exec'ing a file | Dan Hemberger | 2019-07-06 | 1 | -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.x | Ned Batchelder | 2019-05-13 | 1 | -2/+2 |
| | |||||
* | Move more PYVERSION to be PYBEHAVIOR | Ned Batchelder | 2019-03-24 | 1 | -5/+1 |
| | |||||
* | Move some version conditionals to PYBEHAVIOR | Ned Batchelder | 2019-03-24 | 1 | -2/+2 |
| | |||||
* | PyRunner knows how to run Python files. | Ned Batchelder | 2018-11-25 | 1 | -76/+102 |
| | | | | Adjust sys.path to better emulate Python, but only if we should. | ||||
* | Update NOTICE link to GitHub. | Ned Batchelder | 2018-06-24 | 1 | -1/+1 |
| | |||||
* | Make version checking more uniform | Ned Batchelder | 2018-06-13 | 1 | -4/+5 |
| | |||||
* | Adapt to the 3.7.0b3 change in -m sys.path[0] behavior | Ned Batchelder | 2018-03-31 | 1 | -1/+9 |
| | |||||
* | Fine tune some more | Ned Batchelder | 2018-01-13 | 1 | -1/+1 |
| | |||||
* | Fine-tune the 3.7 decisions | Ned Batchelder | 2018-01-13 | 1 | -1/+1 |
| | |||||
* | Python 3.7 tweaked the layout of .pyc files | Ned Batchelder | 2018-01-10 | 1 | -5/+14 |
| | |||||
* | Suppress the coverage.py frame when reporting exceptions | Ned Batchelder | 2016-12-26 | 1 | -0/+2 |
| | |||||
* | Make excepthook execution more accurate. Pypy tests failing | Ned Batchelder | 2016-12-26 | 1 | -4/+12 |
| | |||||
* | Merged in andrewhoos/coverage.py (pull request #93) | Ned Batchelder | 2016-12-26 | 1 | -1/+11 |
|\ | | | | | | | Explicitely call sys.excepthook | ||||
| * | Update change with tests and fixes for tests | Andrew Hoos | 2016-11-30 | 1 | -8/+9 |
| | | |||||
| * | Remove the unused import | Andrew Hoos | 2016-11-29 | 1 | -1/+0 |
| | | |||||
| * | Limit changes to only execfile.py | Andrew Hoos | 2016-11-29 | 1 | -1/+0 |
| | | |||||
| * | Update code to better handle calling sys.excepthook when it throws | Andrew Hoos | 2016-11-29 | 1 | -1/+8 |
| | | |||||
| * | Update handling of sys.excepthook to only call custom excepthooks and ↵ | Andrew Hoos | 2016-11-29 | 1 | -1/+6 |
| | | | | | | | | re-raise exceptions |