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
+67Lines changed: 67 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,73 @@ with advance notice in the **Deprecations** section of releases.
18
18
19
19
.. towncrier release notes start
20
20
21
+
pytest 4.0.0 (2018-11-13)
22
+
=========================
23
+
24
+
Removals
25
+
--------
26
+
27
+
- `#3737 <https://github.com/pytest-dev/pytest/issues/3737>`_: **RemovedInPytest4Warnings are now errors by default.**
28
+
29
+
Following our plan to remove deprecated features with as little disruption as
30
+
possible, all warnings of type ``RemovedInPytest4Warnings`` now generate errors
31
+
instead of warning messages.
32
+
33
+
**The affected features will be effectively removed in pytest 4.1**, so please consult the
34
+
`Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html>`__
35
+
section in the docs for directions on how to update existing code.
36
+
37
+
In the pytest ``4.0.X`` series, it is possible to change the errors back into warnings as a stop
38
+
gap measure by adding this to your ``pytest.ini`` file:
39
+
40
+
.. code-block:: ini
41
+
42
+
[pytest]
43
+
filterwarnings =
44
+
ignore::pytest.RemovedInPytest4Warning
45
+
46
+
But this will stop working when pytest ``4.1`` is released.
47
+
48
+
**If you have concerns** about the removal of a specific feature, please add a
49
+
comment to `#4348 <https://github.com/pytest-dev/pytest/issues/4348>`__.
50
+
51
+
52
+
- `#4358 <https://github.com/pytest-dev/pytest/issues/4358>`_: Remove the ``::()`` notation to denote a test class instance in node ids.
53
+
54
+
Previously, node ids that contain test instances would use ``::()`` to denote the instance like this::
55
+
56
+
test_foo.py::Test::()::test_bar
57
+
58
+
The extra ``::()`` was puzzling to most users and has been removed, so that the test id becomes now::
59
+
60
+
test_foo.py::Test::test_bar
61
+
62
+
This change could not accompany a deprecation period as is usual when user-facing functionality changes because
63
+
it was not really possible to detect when the functionality was being used explicitly.
64
+
65
+
The extra ``::()`` might have been removed in some places internally already,
66
+
which then led to confusion in places where it was expected, e.g. with
Test class instances are also not listed with ``--collect-only`` anymore.
70
+
71
+
72
+
73
+
Features
74
+
--------
75
+
76
+
- `#4270 <https://github.com/pytest-dev/pytest/issues/4270>`_: The ``cache_dir`` option uses ``$TOX_ENV_DIR`` as prefix (if set in the environment).
77
+
78
+
This uses a different cache per tox environment by default.
79
+
80
+
81
+
82
+
Bug Fixes
83
+
---------
84
+
85
+
- `#3554 <https://github.com/pytest-dev/pytest/issues/3554>`_: Fix ``CallInfo.__repr__`` for when the call is not finished yet.
0 commit comments