summaryrefslogtreecommitdiff
path: root/tests/test_execfile.py
Commit message (Collapse)AuthorAgeFilesLines
* mypy: Iterator is better than GeneratorNed Batchelder2023-01-051-2/+2
|
* mypy: use __future__ uniformly in checked filesNed Batchelder2023-01-051-0/+2
|
* mypy: test_debug.py test_execfile.py test_filereporter.py test_files.pyNed Batchelder2023-01-041-27/+29
|
* refactor: removed mentions of Jython and IronPythonNed Batchelder2022-12-301-4/+0
|
* build: 3.11.0 and 3.12.0a1 are availableNed Batchelder2022-10-271-1/+1
|
* refactor(test): use xfail for tests that fail on specific versions of PythonNed Batchelder2022-01-191-4/+0
|
* refactor: remove code that was only needed for Python 3.6Ned Batchelder2021-12-311-1/+0
|
* docs: document the exceptionsNed Batchelder2021-11-141-3/+3
| | | | ... and make some of them private.
* style: convert more string formatting to f-stringsNed Batchelder2021-11-111-1/+1
|
* test(fix): isolate excepthook tests from each otherNed Batchelder2021-11-021-0/+7
|
* test: add more tests of run_python_fileNed Batchelder2021-10-111-1/+86
| | | | | | 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.
* test: add a test of hash-based pyc filesNed Batchelder2021-10-111-2/+9
|
* refactor: remove a Python 2 thingNed Batchelder2021-10-101-6/+1
|
* test: a part-covered comprehensionNed Batchelder2021-08-091-3/+1
| | | | | The comprehension would only completely finish (->exit) if the assert was going to fail. So we expect it to not finish.
* test: simplify pyc logicNed Batchelder2021-08-091-9/+2
| | | | | | The old pycache_prefix logic was because we would run tests in Docker containers, and they went faster if we set PYTHONCACHEPREFIX. But we don't do that anymore, so we can use simpler code.
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+1
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-3/+3
|
* 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: convert all skipping to pytest skipsNed Batchelder2021-02-071-1/+1
|
* refactor: remove reliance on unittest_mixins.StdStreamCapturingMixinNed Batchelder2021-02-021-12/+18
| | | | This is another step toward removing unittest.TestCase as a base class.
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-311-2/+1
|
* style: correct placement of auto-added pytest importsNed Batchelder2021-01-311-1/+2
|
* style: singleton comparisons should use isNed Batchelder2021-01-311-1/+1
| | | | | | I guess the original line was wrong, but it would have been nice for unittest2pytest to fix it for me: https://github.com/pytest-dev/unittest2pytest/issues/52
* refactor: unittest2pytest -w testsNed Batchelder2021-01-311-40/+41
| | | | One step of moving to pure pytest tests.
* One more adjustment for Python 3.9a2Ned Batchelder2019-12-211-1/+1
|
* Adapt to 3.9's way of reporting files using absolute paths.Ned Batchelder2019-11-251-4/+10
|
* Linux tests are runnableNed Batchelder2019-11-071-5/+15
| | | | PYTHONPYCACHEPREFIX makes the tests 10% faster on 3.8
* Prefer assertRaisesRegex to assertRaisesNed Batchelder2019-04-211-4/+4
|
* PyRunner knows how to run Python files.Ned Batchelder2018-11-251-22/+22
| | | | Adjust sys.path to better emulate Python, but only if we should.
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Pylint 1.8.1, and fix its new warningsNed Batchelder2017-12-231-1/+1
|
* Refactor common test infrastructure for fiddling sys.path and finding filesNed Batchelder2017-05-041-9/+3
|
* Oops, broke this other test using try_execfile.pyNed Batchelder2017-01-191-1/+2
|
* A cleaner way to exclude Jython concerns from meta-coverage.Ned Batchelder2017-01-161-1/+1
|
* Reporting doesn't work on Jython, so don't run reporting tests there.Ned Batchelder2017-01-141-0/+4
| | | | | --HG-- extra : amend_source : 144fd0ffb49fdef1139ae3f0085831ece14de43f
* Provide a more useful error message if failing to run a non-Python file. #514Ned Batchelder2016-12-171-0/+19
|
* Another use of try_execfile.py to adjustNed Batchelder2016-06-121-4/+3
|
* Fix explicit imports of __init__. #410Ned Batchelder2015-10-131-4/+9
|
* Support directories on the 'coverage run' command line. #252Ned Batchelder2015-08-011-6/+9
|
* Merged in traff/coverage.py (pull request #50)Ned Batchelder2015-08-011-0/+9
|\ | | | | | | 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/+9
| |
* | Add license mention to the top of all files. #313.Ned Batchelder2015-07-241-0/+3
|/
* Make some test setup more uniformNed Batchelder2015-01-181-3/+9
|
* Don't fail because sys.path has duplicate entries. Fixes #337Ned Batchelder2014-11-141-3/+3
|
* Use with-open everywhereNed Batchelder2014-10-261-5/+5
|
* Pragmas for uncovered codeNed Batchelder2014-09-281-2/+2
|
* Pylint upgrade and cleanup.Ned Batchelder2014-09-211-1/+1
|
* Avoid a bunch of deprecated functions.Ned Batchelder2014-05-171-2/+2
|
* Refactor execfile to avoid imp to avoid deprecation warningsNed Batchelder2014-05-161-0/+5
|
* Use assertRaises as a context manager now that we can.Ned Batchelder2013-12-211-13/+14
|