Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-01-13 | unittest: cleanup unexpected success handling (#8231) | Anton | |
* unittest: cleanup unexpected success handling * update comment | |||
2021-01-04 | Merge pull request #8218 from bluetech/reports2 | Ran Benita | |
Misc small code improvements | |||
2021-01-04 | Add dot prefix if file makefile extension is invalid for pathlib (#8222) | bengartner | |
2021-01-01 | python: inline a simple method | Ran Benita | |
I don't think it adds much value! | |||
2021-01-01 | Always use getfixturemarker() to access _pytestfixturefunction | Ran Benita | |
Keep knowledge of how the marker is stored encapsulated in one place. | |||
2021-01-01 | fixtures: type annotate FixtureRequest.keywords | Ran Benita | |
2021-01-01 | fixtures: simplify FixtureRequest._get_fixturestack() | Ran Benita | |
2021-01-01 | reports: improve a type annotation | Ran Benita | |
2021-01-01 | reports: BaseReport.{passed,failed,skipped} more friendly to mypy | Ran Benita | |
Not smart enough to understand the previous code. | |||
2020-12-30 | Fix failing staticmethod tests if they are inherited (#8205) | Anton | |
* Fix failing staticmethod tests if they are inherited * add comments, set default=None | |||
2020-12-30 | Merge pull request #8195 from ↵ | Ran Benita | |
christophebedard/add-missing-space-version-option-help-message Add missing space in '--version' help message | |||
2020-12-30 | [pre-commit.ci] pre-commit autoupdate (#8201) | pre-commit-ci[bot] | |
* [pre-commit.ci] pre-commit autoupdate * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * manual fixes after configuration update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Anthony Sottile <asottile@umich.edu> | |||
2020-12-28 | Add missing space in '--version' help message | Christophe Bedard | |
2020-12-26 | runner: export pytest.CallInfo for typing purposes | Ran Benita | |
The type cannot be constructed directly, but is exported for use in type annotations, since it is reachable through existing public API. This also documents `from_call` as public, because at least pytest-forked uses it, so we must treat it as public already anyway. | |||
2020-12-26 | python: export pytest.Metafunc for typing purposes | Ran Benita | |
The type cannot be constructed directly, but is exported for use in type annotations, since it is reachable through existing public API. | |||
2020-12-26 | nodes: avoid needing to expose NodeKeywords for typing | Ran Benita | |
It adds no value over exporting just the ABC so do that to reduce the API surface. | |||
2020-12-26 | Merge pull request #8174 from bluetech/py-to-pathlib-5 | Ran Benita | |
More py.path -> pathlib conversions | |||
2020-12-22 | Convert most of the collection code from py.path to pathlib | Ran Benita | |
2020-12-22 | pathlib: missing type annotation for fnmatch_ex | Ran Benita | |
2020-12-22 | code: convert from py.path to pathlib | Ran Benita | |
2020-12-20 | mark: export pytest.MarkGenerator for typing purposes | Ran Benita | |
The type cannot be constructed directly, but is exported for use in type annotations, since it is reachable through existing public API. | |||
2020-12-20 | mark: export pytest.MarkDecorator for typing purposes | Ran Benita | |
The type cannot be constructed directly, but is exported for use in type annotations, since it is reachable through existing public API. | |||
2020-12-20 | mark: export pytest.Mark for typing purposes | Ran Benita | |
The type cannot be constructed directly, but is exported for use in type annotations, since it is reachable through existing public API. | |||
2020-12-19 | doctest: use Path instead of py.path where possible | Ran Benita | |
2020-12-19 | config: let main() accept any os.PathLike instead of just py.path.local | Ran Benita | |
Really it ought to only take the List[str], but for backward compatibility, at least get rid of the explicit py.path.local check. | |||
2020-12-19 | terminal: remove unused union arm in WarningReport.fslocation | Ran Benita | |
2020-12-18 | address comments | antonblr | |
2020-12-18 | tests: Migrate to pytester - final update | antonblr | |
2020-12-15 | terminal: fix "(<Skipped instance>)" skip reason in test status line | Ran Benita | |
2020-12-15 | python_api: handle array-like args in approx() (#8137) | Jakob van Santen | |
2020-12-15 | hookspec: add pathlib.Path alternatives to py.path.local parameters in hooks | Ran Benita | |
As part of the ongoing migration for py.path to pathlib, make sure all hooks which take a py.path.local also take an equivalent pathlib.Path. | |||
2020-12-15 | Some py.path.local -> pathlib.Path | Ran Benita | |
2020-12-13 | tests: Migrate testing/python to pytester fixture | antonblr | |
2020-12-13 | Merge pull request #8123 from nicoddemus/import-mismatch-unc | Bruno Oliveira | |
Compare also paths on Windows when considering ImportPathMismatchError | |||
2020-12-13 | Merge pull request #8122 from bluetech/py-to-pathlib-3 | Ran Benita | |
Some py.path.local -> pathlib.Path | |||
2020-12-12 | terminal: when the skip/xfail is empty, don't show it as "()" | Ran Benita | |
Avoid showing a line like x.py::test_4 XPASS () [100%] which looks funny. | |||
2020-12-12 | Add `pytest_markeval_namespace` hook. | Pedro Algarvio | |
Add a new hook , `pytest_markeval_namespace` which should return a dictionary. This dictionary will be used to augment the "global" variables available to evaluate skipif/xfail/xpass markers. Pseudo example ``conftest.py``: .. code-block:: python def pytest_markeval_namespace(): return {"color": "red"} ``test_func.py``: .. code-block:: python @pytest.mark.skipif("color == 'blue'", reason="Color is not red") def test_func(): assert False | |||
2020-12-12 | Some py.path.local -> pathlib.Path | Ran Benita | |
- Some conftest related functions - _confcutdir - Allow arbitrary os.PathLike[str] in gethookproxy. | |||
2020-12-12 | Compare also paths on Windows when considering ImportPathMismatchError | Bruno Oliveira | |
On Windows, os.path.samefile returns false for paths mounted in UNC paths which point to the same location. I couldn't reproduce the actual case reported, but looking at the code it seems this commit should fix the issue. Fix #7678 Fix #8076 | |||
2020-12-09 | Show reason for skipped test in verbose mode | Katarzyna | |
2020-12-05 | Merge pull request #8038 from matthewhughes934/note-tmpdir-lifetime | Ran Benita | |
Docs: Note lifetime of temporary directories | |||
2020-12-05 | Merge pull request #8055 from bluetech/unraisable | Ran Benita | |
Add unraisableexception and threadexception plugins | |||
2020-12-05 | Merge pull request #8017 from bluetech/typing-public-fixtures | Ran Benita | |
Export types of builtin fixtures for type annotations | |||
2020-11-28 | Docs: Note lifetime of temporary directories | Matthew Hughes | |
Explanation: The default handling of these lifetimes is done in `tmpdir.TempPathFactory.getbasetemp`, which passes `keep=3` to `pathlib.make_numbered_dir_with_cleanup`. GH Issue: #8036 | |||
2020-11-25 | Merge pull request #8064 from symonk/fix-typo-in-mock-timing | Ran Benita | |
fix mock_timing fixture name (typo) in timing.py | |||
2020-11-24 | fix typo (#8069) | Jürgen Gmach | |
2020-11-23 | fix mock_timing fixture name (typo) in timing.py | Simon K | |
2020-11-21 | Add unraisableexception and threadexception plugins | Ran Benita | |
2020-11-21 | Add str() support to LineMatcher (#8050) | Maximilian Cosmo Sitter | |
2020-11-21 | permit node to warn with any warning type, not just PytestWarning (#8052) | Simon K | |
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com> |