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: doc/en/changelog.rst
+8-13
Original file line number
Diff line number
Diff line change
@@ -1004,7 +1004,7 @@ Trivial/Internal Changes
1004
1004
- `#7264 <https://github.com/pytest-dev/pytest/issues/7264>`_: The dependency on the ``wcwidth`` package has been removed.
1005
1005
1006
1006
1007
-
- `#7291 <https://github.com/pytest-dev/pytest/issues/7291>`_: Replaced ``py.iniconfig`` with `iniconfig <https://pypi.org/project/iniconfig/>`__.
1007
+
- `#7291 <https://github.com/pytest-dev/pytest/issues/7291>`_: Replaced ``py.iniconfig`` with :pypi:`iniconfig`.
1008
1008
1009
1009
1010
1010
- `#7295 <https://github.com/pytest-dev/pytest/issues/7295>`_: ``src/_pytest/config/__init__.py`` now uses the ``warnings`` module to report warnings instead of ``sys.stderr.write``.
@@ -1795,7 +1795,7 @@ Removals
1795
1795
For more information consult :std:doc:`deprecations` in the docs.
1796
1796
1797
1797
1798
-
- `#5565 <https://github.com/pytest-dev/pytest/issues/5565>`_: Removed unused support code for `unittest2 <https://pypi.org/project/unittest2/>`__.
1798
+
- `#5565 <https://github.com/pytest-dev/pytest/issues/5565>`_: Removed unused support code for :pypi:`unittest2`.
1799
1799
1800
1800
The ``unittest2`` backport module is no longer
1801
1801
necessary since Python 3.3+, and the small amount of code in pytest to support it also doesn't seem
@@ -2520,7 +2520,7 @@ Trivial/Internal Changes
2520
2520
- `#4942 <https://github.com/pytest-dev/pytest/issues/4942>`_: ``logging.raiseExceptions`` is not set to ``False`` anymore.
2521
2521
2522
2522
2523
-
- `#5013 <https://github.com/pytest-dev/pytest/issues/5013>`_: pytest now depends on `wcwidth <https://pypi.org/project/wcwidth>`__ to properly track unicode character sizes for more precise terminal output.
2523
+
- `#5013 <https://github.com/pytest-dev/pytest/issues/5013>`_: pytest now depends on :pypi:`wcwidth` to properly track unicode character sizes for more precise terminal output.
2524
2524
2525
2525
2526
2526
- `#5059 <https://github.com/pytest-dev/pytest/issues/5059>`_: pytester's ``Testdir.popen()`` uses ``stdout`` and ``stderr`` via keyword arguments with defaults now (``subprocess.PIPE``).
@@ -2618,9 +2618,7 @@ Features
2618
2618
2619
2619
2620
2620
- `#4855 <https://github.com/pytest-dev/pytest/issues/4855>`_: The ``--pdbcls`` option handles classes via module attributes now (e.g.
2621
-
``pdb:pdb.Pdb`` with `pdb++`_), and its validation was improved.
2622
-
2623
-
.. _pdb++: https://pypi.org/project/pdbpp/
2621
+
``pdb:pdb.Pdb`` with :pypi:`pdbpp`), and its validation was improved.
2624
2622
2625
2623
2626
2624
- `#4875 <https://github.com/pytest-dev/pytest/issues/4875>`_: The :confval:`testpaths` configuration option is now displayed next
@@ -2691,9 +2689,7 @@ Bug Fixes
2691
2689
Previously they were loaded (imported) always, making e.g. the ``capfd`` fixture available.
2692
2690
2693
2691
2694
-
- `#4968 <https://github.com/pytest-dev/pytest/issues/4968>`_: The pdb ``quit`` command is handled properly when used after the ``debug`` command with `pdb++`_.
2695
-
2696
-
.. _pdb++: https://pypi.org/project/pdbpp/
2692
+
- `#4968 <https://github.com/pytest-dev/pytest/issues/4968>`_: The pdb ``quit`` command is handled properly when used after the ``debug`` command with :pypi:`pdbpp`.
2697
2693
2698
2694
2699
2695
- `#4975 <https://github.com/pytest-dev/pytest/issues/4975>`_: Fix the interpretation of ``-qq`` option where it was being considered as ``-v`` instead.
@@ -3124,7 +3120,7 @@ Features
3124
3120
will not issue the warning.
3125
3121
3126
3122
3127
-
- `#3632 <https://github.com/pytest-dev/pytest/issues/3632>`_: Richer equality comparison introspection on ``AssertionError`` for objects created using `attrs <https://www.attrs.org/en/stable/>`__ or :mod:`dataclasses` (Python 3.7+, `backported to 3.6 <https://pypi.org/project/dataclasses>`__).
3123
+
- `#3632 <https://github.com/pytest-dev/pytest/issues/3632>`_: Richer equality comparison introspection on ``AssertionError`` for objects created using `attrs <https://www.attrs.org/en/stable/>`__ or :mod:`dataclasses` (Python 3.7+, :pypi:`backported to 3.6 <dataclasses>`).
3128
3124
3129
3125
3130
3126
- `#4278 <https://github.com/pytest-dev/pytest/issues/4278>`_: ``CACHEDIR.TAG`` files are now created inside cache directories.
@@ -4865,8 +4861,7 @@ Features
4865
4861
markers. Also, a ``caplog`` fixture is available that enables users to test
4866
4862
the captured log during specific tests (similar to ``capsys`` for example).
4867
4863
For more information, please see the :doc:`logging docs <how-to/logging>`. This feature was
4868
-
introduced by merging the popular `pytest-catchlog
4869
-
<https://pypi.org/project/pytest-catchlog/>`_ plugin, thanks to `Thomas Hisch
4864
+
introduced by merging the popular :pypi:`pytest-catchlog` plugin, thanks to `Thomas Hisch
4870
4865
<https://github.com/thisch>`_. Be advised that during the merging the
4871
4866
backward compatibility interface with the defunct ``pytest-capturelog`` has
4872
4867
been dropped. (`#2794 <https://github.com/pytest-dev/pytest/issues/2794>`_)
@@ -4943,7 +4938,7 @@ Bug Fixes
4943
4938
Trivial/Internal Changes
4944
4939
------------------------
4945
4940
4946
-
- pytest now depends on `attrs <https://pypi.org/project/attrs/>`__ for internal
4941
+
- pytest now depends on :pypi:`attrs` for internal
Here is an example ``conftest.py`` (extracted from Ali Afshar's special purpose `pytest-yamlwsgi`_ plugin). This ``conftest.py`` will collect ``test*.yaml`` files and will execute the yaml-formatted content as custom tests:
16
15
@@ -22,7 +21,7 @@ You can create a simple example file:
22
21
.. include:: nonpython/test_simple.yaml
23
22
:literal:
24
23
25
-
and if you installed `PyYAML`_ or a compatible YAML-parser you can
24
+
and if you installed :pypi:`PyYAML` or a compatible YAML-parser you can
0 commit comments