Preparing release version 3.10.0
This commit is contained in:
parent
1ec6805112
commit
c2e906ec97
|
@ -18,6 +18,72 @@ with advance notice in the **Deprecations** section of releases.
|
||||||
|
|
||||||
.. towncrier release notes start
|
.. towncrier release notes start
|
||||||
|
|
||||||
|
pytest 3.10.0 (2018-11-03)
|
||||||
|
==========================
|
||||||
|
|
||||||
|
Features
|
||||||
|
--------
|
||||||
|
|
||||||
|
- `#2619 <https://github.com/pytest-dev/pytest/issues/2619>`_: Resume capturing output after ``continue`` with ``__import__("pdb").set_trace()``.
|
||||||
|
|
||||||
|
This also adds a new ``pytest_leave_pdb`` hook, and passes in ``pdb`` to the
|
||||||
|
existing ``pytest_enter_pdb`` hook.
|
||||||
|
|
||||||
|
|
||||||
|
- `#4147 <https://github.com/pytest-dev/pytest/issues/4147>`_: Add ``-sw``, ``--stepwise`` as an alternative to ``--lf -x`` for stopping at the first failure, but starting the next test invocation from that test. See `the documentation <https://docs.pytest.org/en/latest/cache.html#stepwise>`_ for more info.
|
||||||
|
|
||||||
|
|
||||||
|
- `#4188 <https://github.com/pytest-dev/pytest/issues/4188>`_: Make ``--color`` emit colorful dots when not running in verbose mode. Earlier, it would only colorize the test-by-test output if ``--verbose`` was also passed.
|
||||||
|
|
||||||
|
|
||||||
|
- `#4225 <https://github.com/pytest-dev/pytest/issues/4225>`_: Improve performance with collection reporting in non-quiet mode with terminals.
|
||||||
|
|
||||||
|
The "collecting …" message is only printed/updated every 0.5s.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Bug Fixes
|
||||||
|
---------
|
||||||
|
|
||||||
|
- `#2701 <https://github.com/pytest-dev/pytest/issues/2701>`_: Fix false ``RemovedInPytest4Warning: usage of Session... is deprecated, please use pytest`` warnings.
|
||||||
|
|
||||||
|
|
||||||
|
- `#4046 <https://github.com/pytest-dev/pytest/issues/4046>`_: Fix problems with running tests in package ``__init__.py`` files.
|
||||||
|
|
||||||
|
|
||||||
|
- `#4260 <https://github.com/pytest-dev/pytest/issues/4260>`_: Swallow warnings during anonymous compilation of source.
|
||||||
|
|
||||||
|
|
||||||
|
- `#4262 <https://github.com/pytest-dev/pytest/issues/4262>`_: Fix access denied error when deleting stale directories created by ``tmpdir`` / ``tmp_path``.
|
||||||
|
|
||||||
|
|
||||||
|
- `#611 <https://github.com/pytest-dev/pytest/issues/611>`_: Naming a fixture ``request`` will now raise a warning: the ``request`` fixture is internal and
|
||||||
|
should not be overwritten as it will lead to internal errors.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Improved Documentation
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
- `#4255 <https://github.com/pytest-dev/pytest/issues/4255>`_: Added missing documentation about the fact that module names passed to filter warnings are not regex-escaped.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Trivial/Internal Changes
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
- `#4272 <https://github.com/pytest-dev/pytest/issues/4272>`_: Display cachedir also in non-verbose mode if non-default.
|
||||||
|
|
||||||
|
|
||||||
|
- `#4277 <https://github.com/pytest-dev/pytest/issues/4277>`_: pdb: improve message about output capturing with ``set_trace``.
|
||||||
|
|
||||||
|
Do not display "IO-capturing turned off/on" when ``-s`` is used to avoid
|
||||||
|
confusion.
|
||||||
|
|
||||||
|
|
||||||
|
- `#4279 <https://github.com/pytest-dev/pytest/issues/4279>`_: Improve message and stack level of warnings issued by ``monkeypatch.setenv`` when the value of the environment variable is not a ``str``.
|
||||||
|
|
||||||
|
|
||||||
pytest 3.9.3 (2018-10-27)
|
pytest 3.9.3 (2018-10-27)
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
Resume capturing output after ``continue`` with ``__import__("pdb").set_trace()``.
|
|
||||||
|
|
||||||
This also adds a new ``pytest_leave_pdb`` hook, and passes in ``pdb`` to the
|
|
||||||
existing ``pytest_enter_pdb`` hook.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix false ``RemovedInPytest4Warning: usage of Session... is deprecated, please use pytest`` warnings.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix problems with running tests in package ``__init__.py`` files.
|
|
|
@ -1 +0,0 @@
|
||||||
Add ``-sw``, ``--stepwise`` as an alternative to ``--lf -x`` for stopping at the first failure, but starting the next test invocation from that test. See `the documentation <https://docs.pytest.org/en/latest/cache.html#stepwise>`_ for more info.
|
|
|
@ -1 +0,0 @@
|
||||||
Make ``--color`` emit colorful dots when not running in verbose mode. Earlier, it would only colorize the test-by-test output if ``--verbose`` was also passed.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Improve performance with collection reporting in non-quiet mode with terminals.
|
|
||||||
|
|
||||||
The "collecting …" message is only printed/updated every 0.5s.
|
|
|
@ -1 +0,0 @@
|
||||||
Added missing documentation about the fact that module names passed to filter warnings are not regex-escaped.
|
|
|
@ -1 +0,0 @@
|
||||||
Swallow warnings during anonymous compilation of source.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix access denied error when deleting stale directories created by ``tmpdir`` / ``tmp_path``.
|
|
|
@ -1 +0,0 @@
|
||||||
Display cachedir also in non-verbose mode if non-default.
|
|
|
@ -1,4 +0,0 @@
|
||||||
pdb: improve message about output capturing with ``set_trace``.
|
|
||||||
|
|
||||||
Do not display "IO-capturing turned off/on" when ``-s`` is used to avoid
|
|
||||||
confusion.
|
|
|
@ -1 +0,0 @@
|
||||||
Improve message and stack level of warnings issued by ``monkeypatch.setenv`` when the value of the environment variable is not a ``str``.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Naming a fixture ``request`` will now raise a warning: the ``request`` fixture is internal and
|
|
||||||
should not be overwritten as it will lead to internal errors.
|
|
|
@ -6,6 +6,7 @@ Release announcements
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
|
|
||||||
|
release-3.10.0
|
||||||
release-3.9.3
|
release-3.9.3
|
||||||
release-3.9.2
|
release-3.9.2
|
||||||
release-3.9.1
|
release-3.9.1
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
pytest-3.10.0
|
||||||
|
=======================================
|
||||||
|
|
||||||
|
The pytest team is proud to announce the 3.10.0 release!
|
||||||
|
|
||||||
|
pytest is a mature Python testing tool with more than a 2000 tests
|
||||||
|
against itself, passing on many different interpreters and platforms.
|
||||||
|
|
||||||
|
This release contains a number of bugs fixes and improvements, so users are encouraged
|
||||||
|
to take a look at the CHANGELOG:
|
||||||
|
|
||||||
|
https://docs.pytest.org/en/latest/changelog.html
|
||||||
|
|
||||||
|
For complete documentation, please visit:
|
||||||
|
|
||||||
|
https://docs.pytest.org/en/latest/
|
||||||
|
|
||||||
|
As usual, you can upgrade from pypi via:
|
||||||
|
|
||||||
|
pip install -U pytest
|
||||||
|
|
||||||
|
Thanks to all who contributed to this release, among them:
|
||||||
|
|
||||||
|
* Anders Hovmöller
|
||||||
|
* Andreu Vallbona Plazas
|
||||||
|
* Ankit Goel
|
||||||
|
* Anthony Sottile
|
||||||
|
* Bernardo Gomes
|
||||||
|
* Brianna Laugher
|
||||||
|
* Bruno Oliveira
|
||||||
|
* Daniel Hahler
|
||||||
|
* David Szotten
|
||||||
|
* Mick Koch
|
||||||
|
* Niclas Olofsson
|
||||||
|
* Palash Chatterjee
|
||||||
|
* Ronny Pfannschmidt
|
||||||
|
* Sven-Hendrik Haase
|
||||||
|
* Ville Skyttä
|
||||||
|
* William Jamir Silva
|
||||||
|
|
||||||
|
|
||||||
|
Happy testing,
|
||||||
|
The Pytest Development Team
|
|
@ -244,6 +244,8 @@ You can always peek at the content of the cache using the
|
||||||
{'test_caching.py::test_function': True}
|
{'test_caching.py::test_function': True}
|
||||||
cache/nodeids contains:
|
cache/nodeids contains:
|
||||||
['test_caching.py::test_function']
|
['test_caching.py::test_function']
|
||||||
|
cache/stepwise contains:
|
||||||
|
[]
|
||||||
example/value contains:
|
example/value contains:
|
||||||
42
|
42
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,7 @@ interesting to just look at the collection tree::
|
||||||
platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y
|
platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y
|
||||||
rootdir: $REGENDOC_TMPDIR/nonpython, inifile:
|
rootdir: $REGENDOC_TMPDIR/nonpython, inifile:
|
||||||
collected 2 items
|
collected 2 items
|
||||||
|
<Package '$REGENDOC_TMPDIR/nonpython'>
|
||||||
<Package '$REGENDOC_TMPDIR/nonpython'>
|
<Package '$REGENDOC_TMPDIR/nonpython'>
|
||||||
<YamlFile 'test_simple.yml'>
|
<YamlFile 'test_simple.yml'>
|
||||||
<YamlItem 'hello'>
|
<YamlItem 'hello'>
|
||||||
|
|
|
@ -421,21 +421,9 @@ additionally it is possible to copy examples for an example folder before runnin
|
||||||
test_example.py::test_plugin
|
test_example.py::test_plugin
|
||||||
$REGENDOC_TMPDIR/test_example.py:4: PytestExperimentalApiWarning: testdir.copy_example is an experimental api that may change over time
|
$REGENDOC_TMPDIR/test_example.py:4: PytestExperimentalApiWarning: testdir.copy_example is an experimental api that may change over time
|
||||||
testdir.copy_example("test_example.py")
|
testdir.copy_example("test_example.py")
|
||||||
$PYTHON_PREFIX/lib/python3.6/site-packages/_pytest/compat.py:332: RemovedInPytest4Warning: usage of Session.Class is deprecated, please use pytest.Class instead
|
|
||||||
return getattr(object, name, default)
|
|
||||||
$PYTHON_PREFIX/lib/python3.6/site-packages/_pytest/compat.py:332: RemovedInPytest4Warning: usage of Session.File is deprecated, please use pytest.File instead
|
|
||||||
return getattr(object, name, default)
|
|
||||||
$PYTHON_PREFIX/lib/python3.6/site-packages/_pytest/compat.py:332: RemovedInPytest4Warning: usage of Session.Function is deprecated, please use pytest.Function instead
|
|
||||||
return getattr(object, name, default)
|
|
||||||
$PYTHON_PREFIX/lib/python3.6/site-packages/_pytest/compat.py:332: RemovedInPytest4Warning: usage of Session.Instance is deprecated, please use pytest.Instance instead
|
|
||||||
return getattr(object, name, default)
|
|
||||||
$PYTHON_PREFIX/lib/python3.6/site-packages/_pytest/compat.py:332: RemovedInPytest4Warning: usage of Session.Item is deprecated, please use pytest.Item instead
|
|
||||||
return getattr(object, name, default)
|
|
||||||
$PYTHON_PREFIX/lib/python3.6/site-packages/_pytest/compat.py:332: RemovedInPytest4Warning: usage of Session.Module is deprecated, please use pytest.Module instead
|
|
||||||
return getattr(object, name, default)
|
|
||||||
|
|
||||||
-- Docs: https://docs.pytest.org/en/latest/warnings.html
|
-- Docs: https://docs.pytest.org/en/latest/warnings.html
|
||||||
=================== 2 passed, 7 warnings in 0.12 seconds ===================
|
=================== 2 passed, 1 warnings in 0.12 seconds ===================
|
||||||
|
|
||||||
For more information about the result object that ``runpytest()`` returns, and
|
For more information about the result object that ``runpytest()`` returns, and
|
||||||
the methods that it provides please check out the :py:class:`RunResult
|
the methods that it provides please check out the :py:class:`RunResult
|
||||||
|
|
Loading…
Reference in New Issue