Merge master into features (with regen branch)

This commit is contained in:
Daniel Hahler
2019-04-03 22:11:00 +02:00
62 changed files with 333 additions and 188 deletions
-2
View File
@@ -1,2 +0,0 @@
Fix bug where fixtures requested dynamically via ``request.getfixturevalue()`` might be teardown
before the requesting fixture.
-4
View File
@@ -1,4 +0,0 @@
``async`` test functions are skipped and a warning is emitted when a suitable
async plugin is not installed (such as ``pytest-asyncio`` or ``pytest-trio``).
Previously ``async`` functions would not execute at all but still be marked as "passed".
-1
View File
@@ -1 +0,0 @@
Include new ``disable_test_id_escaping_and_forfeit_all_rights_to_community_support`` option to disable ascii-escaping in parametrized values. This may cause a series of problems and as the name makes clear, use at your own risk.
-6
View File
@@ -1,6 +0,0 @@
The ``-p`` option can now be used to early-load plugins also by entry-point name, instead of just
by module name.
This makes it possible to early load external plugins like ``pytest-cov`` in the command-line::
pytest -p pytest_cov
-1
View File
@@ -1 +0,0 @@
``pluggy>=0.9`` is now required.
-1
View File
@@ -1 +0,0 @@
``funcsigs>=1.0`` is now required for Python 2.7.
-1
View File
@@ -1 +0,0 @@
Some left-over internal code related to ``yield`` tests has been removed.
-1
View File
@@ -1 +0,0 @@
pytester unsets ``PYTEST_ADDOPTS`` now to not use outer options with ``testdir.runpytest()``.
-4
View File
@@ -1,4 +0,0 @@
The ``--pdbcls`` option handles classes via module attributes now (e.g.
``pdb:pdb.Pdb`` with `pdb++`_), and its validation was improved.
.. _pdb++: https://pypi.org/project/pdbpp/
-5
View File
@@ -1,5 +0,0 @@
The `testpaths <https://docs.pytest.org/en/latest/reference.html#confval-testpaths>`__ configuration option is now displayed next
to the ``rootdir`` and ``inifile`` lines in the pytest header if the option is in effect, i.e., directories or file names were
not explicitly passed in the command line.
Also, ``inifile`` is only displayed if there's a configuration file, instead of an empty ``inifile:`` string.
-1
View File
@@ -1 +0,0 @@
Remove internally unused ``anypython`` fixture from the pytester plugin.
-1
View File
@@ -1 +0,0 @@
Use the correct modified time for years after 2038 in rewritten ``.pyc`` files.
-1
View File
@@ -1 +0,0 @@
Doctests can be skipped now dynamically using ``pytest.skip()``.
-2
View File
@@ -1,2 +0,0 @@
Remove deprecated Sphinx directive, ``add_description_unit()``,
pin sphinx-removed-in to >= 0.2.0 to support Sphinx 2.0.
-1
View File
@@ -1 +0,0 @@
Fix pytest tests invocation with custom ``PYTHONPATH``.
-6
View File
@@ -1,6 +0,0 @@
Internal refactorings have been made in order to make the implementation of the
`pytest-subtests <https://github.com/pytest-dev/pytest-subtests>`__ plugin
possible, which adds unittest sub-test support and a new ``subtests`` fixture as discussed in
`#1367 <https://github.com/pytest-dev/pytest/issues/1367>`__.
For details on the internal refactorings, please see the details on the related PR.
-1
View File
@@ -1 +0,0 @@
Fix line offsets with ``ScopeMismatch`` errors.
-1
View File
@@ -1 +0,0 @@
pytester's ``LineMatcher`` asserts that the passed lines are a sequence.
-4
View File
@@ -1,4 +0,0 @@
Handle ``-p plug`` after ``-p no:plug``.
This can be used to override a blocked plugin (e.g. in "addopts") from the
command line etc.
-1
View File
@@ -1 +0,0 @@
Output capturing is handled correctly when only capturing via fixtures (capsys, capfs) with ``pdb.set_trace()``.
-3
View File
@@ -1,3 +0,0 @@
``pytester`` sets ``$HOME`` and ``$USERPROFILE`` to the temporary directory during test runs.
This ensures to not load configuration files from the real user's home directory.
-3
View File
@@ -1,3 +0,0 @@
``-p no:plugin`` is handled correctly for default (internal) plugins now, e.g. with ``-p no:capture``.
Previously they were loaded (imported) always, making e.g. the ``capfd`` fixture available.
-9
View File
@@ -1,9 +0,0 @@
New ``pytest_report_to_serializable`` and ``pytest_report_from_serializable`` **experimental** hooks.
These hooks will be used by ``pytest-xdist``, ``pytest-subtests``, and the replacement for
resultlog to serialize and customize reports.
They are experimental, meaning that their details might change or even be removed
completely in future patch releases without warning.
Feedback is welcome from plugin authors and users alike.
-3
View File
@@ -1,3 +0,0 @@
The pdb ``quit`` command is handled properly when used after the ``debug`` command with `pdb++`_.
.. _pdb++: https://pypi.org/project/pdbpp/
-1
View File
@@ -1 +0,0 @@
Update docs for ``pytest_cmdline_parse`` hook to note availability liminations
-1
View File
@@ -1 +0,0 @@
Fix the interpretation of ``-qq`` option where it was being considered as ``-v`` instead.
-1
View File
@@ -1 +0,0 @@
``outcomes.Exit`` is not swallowed in ``assertrepr_compare`` anymore.
-1
View File
@@ -1 +0,0 @@
Namespace packages are handled better with ``monkeypatch.syspath_prepend`` and ``testdir.syspathinsert`` (via ``pkg_resources.fixup_namespace_packages``).
-1
View File
@@ -1 +0,0 @@
``Collector.repr_failure`` respects ``--tbstyle``, but only defaults to ``short`` now (with ``auto``).
-1
View File
@@ -1 +0,0 @@
Close logging's file handler explicitly when the session finishes.
-1
View File
@@ -1 +0,0 @@
The stepwise plugin reports status information now.
-1
View File
@@ -1 +0,0 @@
Fix line offset with mark collection error (off by one).
-3
View File
@@ -1,3 +0,0 @@
If a ``setup.cfg`` file contains ``[tool:pytest]`` and also the no longer supported ``[pytest]`` section, pytest will use ``[tool:pytest]`` ignoring ``[pytest]``. Previously it would unconditionally error out.
This makes it simpler for plugins to support old pytest versions.
+1
View File
@@ -0,0 +1 @@
Environment variables are properly restored when using pytester's ``testdir`` fixture.