Preparing release version 3.9.0

This commit is contained in:
Bruno Oliveira
2018-10-15 20:23:30 +00:00
parent 39a13d7064
commit 2868c31495
39 changed files with 252 additions and 83 deletions
-4
View File
@@ -1,4 +0,0 @@
Improve usage errors messages by hiding internal details which can be distracting and noisy.
This has the side effect that some error conditions that previously raised generic errors (such as
``ValueError`` for unregistered marks) are now raising ``Failed`` exceptions.
-1
View File
@@ -1 +0,0 @@
The internal ``MarkerError`` exception has been removed.
-1
View File
@@ -1 +0,0 @@
Improve error message when test functions of ``unittest.TestCase`` subclasses use a parametrized fixture.
-1
View File
@@ -1 +0,0 @@
``request.fixturenames`` now correctly returns the name of fixtures created by ``request.getfixturevalue()``.
-4
View File
@@ -1,4 +0,0 @@
Improve the error displayed when a ``conftest.py`` file could not be imported.
In order to implement this, a new ``chain`` parameter was added to ``ExceptionInfo.getrepr``
to show or hide chained tracebacks in Python 3 (defaults to ``True``).
-22
View File
@@ -1,22 +0,0 @@
The following accesses have been documented as deprecated for years, but are now actually emitting deprecation warnings.
* Access of ``Module``, ``Function``, ``Class``, ``Instance``, ``File`` and ``Item`` through ``Node`` instances. Now
users will this warning::
usage of Function.Module is deprecated, please use pytest.Module instead
Users should just ``import pytest`` and access those objects using the ``pytest`` module.
* ``request.cached_setup``, this was the precursor of the setup/teardown mechanism available to fixtures. You can
consult `funcarg comparision section in the docs <https://docs.pytest.org/en/latest/funcarg_compare.html>`_.
* Using objects named ``"Class"`` as a way to customize the type of nodes that are collected in ``Collector``
subclasses has been deprecated. Users instead should use ``pytest_collect_make_item`` to customize node types during
collection.
This issue should affect only advanced plugins who create new collection types, so if you see this warning
message please contact the authors so they can change the code.
* The warning that produces the message below has changed to ``RemovedInPytest4Warning``::
getfuncargvalue is deprecated, use getfixturevalue
-1
View File
@@ -1 +0,0 @@
Update usefixtures documentation to clarify that it can't be used with fixture functions.
-1
View File
@@ -1 +0,0 @@
Add ``empty_parameter_set_mark=fail_at_collect`` ini option for raising an exception when parametrize collects an empty set.
-2
View File
@@ -1,2 +0,0 @@
Warning filters passed as command line options using ``-W`` now take precedence over filters defined in ``ini``
configuration files.
-2
View File
@@ -1,2 +0,0 @@
Log messages generated in the collection phase are shown when
live-logging is enabled and/or when they are logged to a file.
-1
View File
@@ -1 +0,0 @@
Introduce ``tmp_path`` as a fixture providing a Path object.
-1
View File
@@ -1 +0,0 @@
Add a Deprecation warning for pytest.ensuretemp as it was deprecated since a while.
-1
View File
@@ -1 +0,0 @@
Port the implementation of tmpdir to pathlib.
-2
View File
@@ -1,2 +0,0 @@
Deprecation warnings are now shown even if you customize the warnings filters yourself. In the previous version
any customization would override pytest's filters and deprecation warnings would fall back to being hidden by default.
-1
View File
@@ -1 +0,0 @@
Update fixture documentation to specify that a fixture can be invoked twice in the scope it's defined for.
-1
View File
@@ -1 +0,0 @@
Exclude 0.00 second entries from ``--duration`` output unless ``-vv`` is passed on the command-line.
-1
View File
@@ -1 +0,0 @@
According to unittest.rst, setUpModule and tearDownModule were not implemented, but it turns out they are. So updated the documentation for unittest.
-1
View File
@@ -1 +0,0 @@
Fix source reindenting by using ``textwrap.dedent`` directly.
-1
View File
@@ -1 +0,0 @@
Allow specification of timeout for ``Testdir.runpytest_subprocess()`` and ``Testdir.run()``.
-1
View File
@@ -1 +0,0 @@
Fixed formatting of string literals in internal tests.
-1
View File
@@ -1 +0,0 @@
Add returncode argument to pytest.exit() to exit pytest with a specific return code.
-1
View File
@@ -1 +0,0 @@
``pytest.warn`` will capture previously-warned warnings in Python 2. Previously they were never raised.
-4
View File
@@ -1,4 +0,0 @@
Reimplement ``pytest.deprecated_call`` using ``pytest.warns`` so it supports the ``match='...'`` keyword argument.
This has the side effect that ``pytest.deprecated_call`` now raises ``pytest.fail.Exception`` instead
of ``AssertionError``.
-5
View File
@@ -1,5 +0,0 @@
Resolve symbolic links for args.
This fixes running ``pytest tests/test_foo.py::test_bar``, where ``tests``
is a symlink to ``project/app/tests``:
previously ``project/app/conftest.py`` would be ignored for fixtures then.
-1
View File
@@ -1 +0,0 @@
Fix duplicate printing of internal errors when using ``--pdb``.
-1
View File
@@ -1 +0,0 @@
pathlib based tmpdir cleanup now correctly handles symlinks in the folder.
-1
View File
@@ -1 +0,0 @@
Require setuptools>=30.3 and move most of the metadata to ``setup.cfg``.
-1
View File
@@ -1 +0,0 @@
Add tempir testing example to CONTRIBUTING.rst guide
-1
View File
@@ -1 +0,0 @@
Display the filename when encountering ``SyntaxWarning``.