You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+53-20Lines changed: 53 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,26 +18,61 @@ with advance notice in the **Deprecations** section of releases.
18
18
19
19
.. towncrier release notes start
20
20
21
-
pytest 3.8.0 (2018-09-05)
21
+
pytest 3.8.1 (2018-09-22)
22
22
=========================
23
23
24
-
Deprecations and Removals
25
-
-------------------------
24
+
Bug Fixes
25
+
---------
26
+
27
+
- `#3286 <https://github.com/pytest-dev/pytest/issues/3286>`_: ``.pytest_cache`` directory is now automatically ignored by Git. Users who would like to contribute a solution for other SCMs please consult/comment on this issue.
28
+
29
+
30
+
- `#3749 <https://github.com/pytest-dev/pytest/issues/3749>`_: Fix the following error during collection of tests inside packages::
31
+
32
+
TypeError: object of type 'Package' has no len()
33
+
26
34
27
-
- `#2452<https://github.com/pytest-dev/pytest/issues/2452>`_: ``Config.warn`` has been deprecated, it should be replaced by calls to the standard ``warnings.warn``.
35
+
- `#3941<https://github.com/pytest-dev/pytest/issues/3941>`_: Fix bug where indirect parametrization would consider the scope of all fixtures used by the test function to determine the parametrization scope, and not only the scope of the fixtures being parametrized.
28
36
29
-
``Node.warn`` now supports two signatures:
30
37
31
-
* ``node.warn(PytestWarning("some message"))``: is now the recommended way to call this function. The warning
32
-
instance must be a ``PytestWarning`` or subclass instance.
38
+
- `#3973 <https://github.com/pytest-dev/pytest/issues/3973>`_: Fix crash of the assertion rewriter if a test changed the current working directory without restoring it afterwards.
39
+
40
+
41
+
- `#3998 <https://github.com/pytest-dev/pytest/issues/3998>`_: Fix issue that prevented some caplog properties (for example ``record_tuples``) from being available when entering the debugger with ``--pdb``.
42
+
43
+
44
+
- `#3999 <https://github.com/pytest-dev/pytest/issues/3999>`_: Fix ``UnicodeDecodeError`` in python2.x when a class returns a non-ascii binary ``__repr__`` in an assertion which also contains non-ascii text.
45
+
46
+
47
+
48
+
Improved Documentation
49
+
----------------------
33
50
34
-
* ``node.warn("CI", "some message")``: this code/message form is now deprecated and should be converted to
35
-
the warning instance form above.
51
+
- `#3996 <https://github.com/pytest-dev/pytest/issues/3996>`_: New `Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html>`_ page shows all currently
52
+
deprecated features, the rationale to do so, and alternatives to update your code. It also list features removed
53
+
from pytest in past major releases to help those with ancient pytest versions to upgrade.
36
54
37
-
``RemovedInPytest4Warning`` and ``PytestExperimentalApiWarning`` are now part of the public API and should be accessed
38
-
using ``pytest.RemovedInPytest4Warning`` and ``pytest.PytestExperimentalApiWarning``.
39
55
40
56
57
+
Trivial/Internal Changes
58
+
------------------------
59
+
60
+
- `#3955 <https://github.com/pytest-dev/pytest/issues/3955>`_: Improve pre-commit detection for changelog filenames
61
+
62
+
63
+
- `#3975 <https://github.com/pytest-dev/pytest/issues/3975>`_: Remove legacy code around im_func as that was python2 only
64
+
65
+
66
+
pytest 3.8.0 (2018-09-05)
67
+
=========================
68
+
69
+
Deprecations and Removals
70
+
-------------------------
71
+
72
+
- `#2452 <https://github.com/pytest-dev/pytest/issues/2452>`_: ``Config.warn`` and ``Node.warn`` have been
73
+
deprecated, see `<https://docs.pytest.org/en/latest/deprecations.html#config-warn-and-node-warn>`_ for rationale and
74
+
examples.
75
+
41
76
- `#3936 <https://github.com/pytest-dev/pytest/issues/3936>`_: ``@pytest.mark.filterwarnings`` second parameter is no longer regex-escaped,
42
77
making it possible to actually use regular expressions to check the warning message.
43
78
@@ -63,7 +98,10 @@ Features
63
98
more info.
64
99
65
100
66
-
- `#3784 <https://github.com/pytest-dev/pytest/issues/3784>`_: Add option to disable plugin auto-loading.
101
+
- `#3251 <https://github.com/pytest-dev/pytest/issues/3251>`_: Warnings are now captured and displayed during test collection.
- `#3829 <https://github.com/pytest-dev/pytest/issues/3829>`_: Added the ``count`` option to ``console_output_style`` to enable displaying the progress as a count instead of a percentage.
@@ -250,15 +288,10 @@ pytest 3.7.0 (2018-07-30)
250
288
Deprecations and Removals
251
289
-------------------------
252
290
253
-
- `#2639 <https://github.com/pytest-dev/pytest/issues/2639>`_: ``pytest_namespace`` has been deprecated.
254
-
255
-
See the documentation for ``pytest_namespace`` hook for suggestions on how to deal
256
-
with this in plugins which use this functionality.
257
-
291
+
- `#2639 <https://github.com/pytest-dev/pytest/issues/2639>`_: ``pytest_namespace`` has been `deprecated <https://docs.pytest.org/en/latest/deprecations.html#pytest-namespace>`_.
258
292
259
-
- `#3661 <https://github.com/pytest-dev/pytest/issues/3661>`_: Calling a fixture function directly, as opposed to request them in a test function, now issues a ``RemovedInPytest4Warning``. It will be changed into an error in pytest ``4.0``.
260
293
261
-
This is a great source of confusion to new users, which will often call the fixture functions and request them from test functions interchangeably, which breaks the fixture resolution model.
294
+
- `#3661 <https://github.com/pytest-dev/pytest/issues/3661>`_: Calling a fixture function directly, as opposed to request them in a test function, now issues a ``RemovedInPytest4Warning``. See `the documentation for rationale and examples <https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly>`_.
- Defining ``pytest_plugins`` is now deprecated in non-top-level conftest.py
623
-
files, because they "leak" to the entire directory tree. (`#3084
656
+
files, because they "leak" to the entire directory tree. `See the docs <https://docs.pytest.org/en/latest/deprecations.html#pytest-plugins-in-non-top-level-conftest-files>`_ for the rationale behind this decision (`#3084
0 commit comments