summaryrefslogtreecommitdiff
path: root/tests/helpers.py
Commit message (Collapse)AuthorAgeFilesLines
* mypy: test_venv.pyNed Batchelder2023-01-071-1/+2
|
* style: use good style for annotated defaults parametersNed Batchelder2023-01-051-7/+7
|
* mypy: Iterator is better than GeneratorNed Batchelder2023-01-051-4/+4
|
* mypy: test_coverage.py, test_data.pyNed Batchelder2023-01-041-2/+8
|
* mypy: summary.py, test_summary.py, tests/coveragetest.pyNed Batchelder2023-01-041-3/+3
|
* refactor: a better way to have maybe-importable third-party modulesNed Batchelder2023-01-031-20/+0
|
* mypy: check tests/helpers.pyNed Batchelder2022-12-311-34/+62
|
* mypy: add data.py and test_api.pyNed Batchelder2022-12-311-1/+1
|
* test: seven tests that fail because of pypy 3882Ned Batchelder2022-12-301-2/+3
| | | | https://foss.heptapod.net/pypy/pypy/-/issues/3882
* fix: adjust some PyPy behaviors. #1515Ned Batchelder2022-12-271-4/+3
|
* refactor: remove mention of Python 2 unicodeNed Batchelder2022-11-061-2/+2
|
* test: pypy fixed their sys.path[0] difference, 3792Ned Batchelder2022-08-271-5/+0
| | | | https://foss.heptapod.net/pypy/pypy/-/issues/3792
* test: xfail some tests that need PyPy to improve #1426Ned Batchelder2022-08-021-1/+6
| | | | https://foss.heptapod.net/pypy/pypy/-/issues/3792
* test: xfail decorator tests that fail on PyPy 3.8 (7.3.10alpha)Ned Batchelder2022-05-211-0/+9
| | | | https://foss.heptapod.net/pypy/pypy/-/issues/3749
* style: remove an orphaned importNed Batchelder2022-05-201-1/+0
|
* test: remove file-removal that isn't needed anymoreNed Batchelder2022-05-201-6/+0
|
* style: parens should indent the same as their opening lineNed Batchelder2022-05-011-2/+2
|
* refactor(test): a context manager to swallow warningsNed Batchelder2022-02-041-0/+12
|
* test: a debug helper to show made-file contentsNed Batchelder2022-01-151-0/+7
|
* refactor(test): make re_lines (et al) look like re.searchNed Batchelder2021-10-281-5/+5
| | | | and also replace some calls with just-plain re.search.
* refactor(test): re_lines is more useful if it returns a listNed Batchelder2021-10-271-4/+10
|
* refactor(test): os_sep and remove_tree helpersNed Batchelder2021-10-241-0/+14
|
* test: subprocess diagnostic for when we need itNed Batchelder2021-10-161-0/+6
|
* style: use the official designation for utf-8Ned Batchelder2021-10-101-1/+1
| | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure.
* Support TOML v1.0.0 syntax in `pyproject.toml` (#1186)Thomas Grainger2021-07-131-1/+1
| | | | | | | | | | | | | | | | | * Support TOML v1.0.0 syntax in `pyproject.toml` fixes #1180 Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> * fix toml meta test * use pytest.mark.parametrize to narrow test failure * Update tests/test_config.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
* test: better checking for CoverageWarningsNed Batchelder2021-05-311-2/+2
| | | | | On Python 3.10, we were getting other warnings mixed into the warnings the tests were looking for. This change lets us only look at the CoverageWarnings.
* test: simplify run_command output handlingNed Batchelder2021-05-301-5/+3
| | | | | The type-check is left over from Python 2 compatibility, we don't need it anymore.
* feat: warnings are now real warningsNed Batchelder2021-05-301-0/+15
| | | | | | This makes coverage warnings visible when running test suites under pytest. But it also means some uninteresting warnings would show up in our own test suite, so we had to catch or suppress those.
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-7/+5
|
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-10/+1
|
* fix: don't measure third-party scriptsnedbat/bin-excludeNed Batchelder2021-04-111-1/+1
| | | | | | This finishes the last bit of #905 Also includes tighter logging of the reason for not tracing modules.
* refactor: nice_file can be used as a functionNed Batchelder2021-03-221-0/+6
|
* refactor: make_file can be used as a functionNed Batchelder2021-03-221-0/+42
|
* refactor: pull module cleaning into hereNed Batchelder2021-03-111-26/+1
| | | | We don't need unittest_mixins' module cleaner anymore.
* refactor: our own change_dir context managerNed Batchelder2021-03-111-0/+17
| | | | We don't need to use the one from unittest_mixins.
* refactor: slightly better coverage in coveragetestNed Batchelder2021-02-211-1/+1
|
* refactor: remove unittest.assertCountEqualNed Batchelder2021-02-061-0/+11
| | | | Another step toward removing unittest.TestCase.
* Simplify the testing of the toml extra, fixing #1084Ned Batchelder2021-01-181-0/+19
|
* Move test helpers to tests.helpersNed Batchelder2019-12-311-0/+70
|
* Combine test helpers: remove_filesNed Batchelder2019-12-171-3/+8
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Refactor module cleaning so we can use it outside of testsNed Batchelder2017-02-111-1/+30
|
* Get rid of some unused code pathsNed Batchelder2017-01-201-3/+1
|
* Promote re_line and re_lines to real helpers, with tests.Ned Batchelder2017-01-151-0/+24
|
* Add a test of CheckUniqueFilenamesNed Batchelder2017-01-151-4/+12
|
* Use a 2/3 name for unicodeNed Batchelder2016-11-231-1/+2
|
* Window encodings?Ned Batchelder2015-11-011-2/+3
|
* MergeNed Batchelder2015-10-311-1/+6
|\
| * Account for no encoding at all...Ned Batchelder2015-10-251-3/+5
| |
| * Diagnostic for appveyor, part 2 of NNed Batchelder2015-10-251-1/+2
| |