Skip to content

Commit

Permalink
Merge pull request pytest-dev#9293 from hoefling/doc/extlinks-gh-user
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Nov 13, 2021
2 parents 062d91a + 2f1096c commit 3dc17f1
Show file tree
Hide file tree
Showing 6 changed files with 205 additions and 370 deletions.
46 changes: 15 additions & 31 deletions doc/en/announce/release-2.9.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,29 @@ The py.test Development Team
**New Features**

* New ``pytest.mark.skip`` mark, which unconditionally skips marked tests.
Thanks `@MichaelAquilina`_ for the complete PR (:pull:`1040`).
Thanks :user:`MichaelAquilina` for the complete PR (:pull:`1040`).

* ``--doctest-glob`` may now be passed multiple times in the command-line.
Thanks `@jab`_ and `@nicoddemus`_ for the PR.
Thanks :user:`jab` and :user:`nicoddemus` for the PR.

* New ``-rp`` and ``-rP`` reporting options give the summary and full output
of passing tests, respectively. Thanks to `@codewarrior0`_ for the PR.
of passing tests, respectively. Thanks to :user:`codewarrior0` for the PR.

* ``pytest.mark.xfail`` now has a ``strict`` option which makes ``XPASS``
tests to fail the test suite, defaulting to ``False``. There's also a
``xfail_strict`` ini option that can be used to configure it project-wise.
Thanks `@rabbbit`_ for the request and `@nicoddemus`_ for the PR (:issue:`1355`).
Thanks :user:`rabbbit` for the request and :user:`nicoddemus` for the PR (:issue:`1355`).

* ``Parser.addini`` now supports options of type ``bool``. Thanks
`@nicoddemus`_ for the PR.
:user:`nicoddemus` for the PR.

* New ``ALLOW_BYTES`` doctest option strips ``b`` prefixes from byte strings
in doctest output (similar to ``ALLOW_UNICODE``).
Thanks `@jaraco`_ for the request and `@nicoddemus`_ for the PR (:issue:`1287`).
Thanks :user:`jaraco` for the request and :user:`nicoddemus` for the PR (:issue:`1287`).

* give a hint on KeyboardInterrupt to use the --fulltrace option to show the errors,
this fixes :issue:`1366`.
Thanks to `@hpk42`_ for the report and `@RonnyPfannschmidt`_ for the PR.
Thanks to :user:`hpk42` for the report and :user:`RonnyPfannschmidt` for the PR.

* catch IndexError exceptions when getting exception source location. This fixes
pytest internal error for dynamically generated code (fixtures and tests)
Expand All @@ -91,19 +91,19 @@ The py.test Development Team
`pylib <https://pylib.readthedocs.io/en/stable/>`_.

* ``pytest_enter_pdb`` now optionally receives the pytest config object.
Thanks `@nicoddemus`_ for the PR.
Thanks :user:`nicoddemus` for the PR.

* Removed code and documentation for Python 2.5 or lower versions,
including removal of the obsolete ``_pytest.assertion.oldinterpret`` module.
Thanks `@nicoddemus`_ for the PR (:issue:`1226`).
Thanks :user:`nicoddemus` for the PR (:issue:`1226`).

* Comparisons now always show up in full when ``CI`` or ``BUILD_NUMBER`` is
found in the environment, even when -vv isn't used.
Thanks `@The-Compiler`_ for the PR.
Thanks :user:`The-Compiler` for the PR.

* ``--lf`` and ``--ff`` now support long names: ``--last-failed`` and
``--failed-first`` respectively.
Thanks `@MichaelAquilina`_ for the PR.
Thanks :user:`MichaelAquilina` for the PR.

* Added expected exceptions to pytest.raises fail message

Expand All @@ -115,36 +115,20 @@ The py.test Development Team

* The ``-s`` and ``-c`` options should now work under ``xdist``;
``Config.fromdictargs`` now represents its input much more faithfully.
Thanks to `@bukzor`_ for the complete PR (:issue:`680`).
Thanks to :user:`bukzor` for the complete PR (:issue:`680`).

* Fix (:issue:`1290`): support Python 3.5's ``@`` operator in assertion rewriting.
Thanks `@Shinkenjoe`_ for report with test case and `@tomviner`_ for the PR.
Thanks :user:`Shinkenjoe` for report with test case and :user:`tomviner` for the PR.

* Fix formatting utf-8 explanation messages (:issue:`1379`).
Thanks `@biern`_ for the PR.
Thanks :user:`biern` for the PR.

* Fix `traceback style docs`_ to describe all of the available options
(auto/long/short/line/native/no), with ``auto`` being the default since v2.6.
Thanks `@hackebrot`_ for the PR.
Thanks :user:`hackebrot` for the PR.

* Fix (:issue:`1422`): junit record_xml_property doesn't allow multiple records
with same name.


.. _`traceback style docs`: https://pytest.org/en/stable/how-to/output.html#modifying-python-traceback-printing


.. _@biern: https://github.com/biern
.. _@MichaelAquilina: https://github.com/MichaelAquilina
.. _@bukzor: https://github.com/bukzor
.. _@hpk42: https://github.com/hpk42
.. _@nicoddemus: https://github.com/nicoddemus
.. _@jab: https://github.com/jab
.. _@codewarrior0: https://github.com/codewarrior0
.. _@jaraco: https://github.com/jaraco
.. _@The-Compiler: https://github.com/The-Compiler
.. _@Shinkenjoe: https://github.com/Shinkenjoe
.. _@tomviner: https://github.com/tomviner
.. _@RonnyPfannschmidt: https://github.com/RonnyPfannschmidt
.. _@rabbbit: https://github.com/rabbbit
.. _@hackebrot: https://github.com/hackebrot
13 changes: 4 additions & 9 deletions doc/en/announce/release-2.9.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,21 @@ The py.test Development Team
**Bug Fixes**

* Improve error message when a plugin fails to load.
Thanks `@nicoddemus`_ for the PR.
Thanks :user:`nicoddemus` for the PR.

* Fix (:issue:`1178`):
``pytest.fail`` with non-ascii characters raises an internal pytest error.
Thanks `@nicoddemus`_ for the PR.
Thanks :user:`nicoddemus` for the PR.

* Fix (:issue:`469`): junit parses report.nodeid incorrectly, when params IDs
contain ``::``. Thanks `@tomviner`_ for the PR (:pull:`1431`).
contain ``::``. Thanks :user:`tomviner` for the PR (:pull:`1431`).

* Fix (:issue:`578`): SyntaxErrors
containing non-ascii lines at the point of failure generated an internal
py.test error.
Thanks `@asottile`_ for the report and `@nicoddemus`_ for the PR.
Thanks :user:`asottile` for the report and :user:`nicoddemus` for the PR.

* Fix (:issue:`1437`): When passing in a bytestring regex pattern to parameterize
attempt to decode it as utf-8 ignoring errors.

* Fix (:issue:`649`): parametrized test nodes cannot be specified to run on the command line.


.. _@asottile: https://github.com/asottile
.. _@nicoddemus: https://github.com/nicoddemus
.. _@tomviner: https://github.com/tomviner
21 changes: 6 additions & 15 deletions doc/en/announce/release-2.9.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,35 +40,26 @@ The py.test Development Team
**Bug Fixes**

* fix :issue:`510`: skip tests where one parameterize dimension was empty
thanks Alex Stapleton for the Report and `@RonnyPfannschmidt`_ for the PR
thanks Alex Stapleton for the Report and :user:`RonnyPfannschmidt` for the PR

* Fix Xfail does not work with condition keyword argument.
Thanks `@astraw38`_ for reporting the issue (:issue:`1496`) and `@tomviner`_
Thanks :user:`astraw38` for reporting the issue (:issue:`1496`) and :user:`tomviner`
for PR the (:pull:`1524`).

* Fix win32 path issue when putting custom config file with absolute path
in ``pytest.main("-c your_absolute_path")``.

* Fix maximum recursion depth detection when raised error class is not aware
of unicode/encoded bytes.
Thanks `@prusse-martin`_ for the PR (:pull:`1506`).
Thanks :user:`prusse-martin` for the PR (:pull:`1506`).

* Fix ``pytest.mark.skip`` mark when used in strict mode.
Thanks `@pquentin`_ for the PR and `@RonnyPfannschmidt`_ for
Thanks :user:`pquentin` for the PR and :user:`RonnyPfannschmidt` for
showing how to fix the bug.

* Minor improvements and fixes to the documentation.
Thanks `@omarkohl`_ for the PR.
Thanks :user:`omarkohl` for the PR.

* Fix ``--fixtures`` to show all fixture definitions as opposed to just
one per fixture name.
Thanks to `@hackebrot`_ for the PR.


.. _@astraw38: https://github.com/astraw38
.. _@hackebrot: https://github.com/hackebrot
.. _@omarkohl: https://github.com/omarkohl
.. _@pquentin: https://github.com/pquentin
.. _@prusse-martin: https://github.com/prusse-martin
.. _@RonnyPfannschmidt: https://github.com/RonnyPfannschmidt
.. _@tomviner: https://github.com/tomviner
Thanks to :user:`hackebrot` for the PR.

0 comments on commit 3dc17f1

Please sign in to comment.