Skip to content

Commit

Permalink
Merge pull request #172 from pytest-dev/release-0.14.0
Browse files Browse the repository at this point in the history
Release 0.14.0
  • Loading branch information
github-actions[bot] authored Dec 7, 2024
2 parents 04094f7 + 7ac6f2f commit fa35610
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
122 changes: 82 additions & 40 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
CHANGELOG
=========

UNRELEASED
----------
0.14.0
------

* Fix output when using ``TestCase.skipTest`` (`#169`_).
*2024-12-07*

* Fix ``pytest`` requirement to ``>=7.3`` (`#159`_).
* Add support for Python 3.13.

* Dropped support for EOL Python 3.8.

* Fixed output when using ``TestCase.skipTest`` (`#169`_).

* Fixed ``pytest`` requirement to ``>=7.3`` (`#159`_).

.. _#159: https://github.com/pytest-dev/pytest-subtests/issues/159
.. _#169: https://github.com/pytest-dev/pytest-subtests/pull/169

0.13.1 (2024-07-16)
-------------------
0.13.1
------

*2024-07-16*

* Fixed bug were an extra test would execute when ``-x/--exitfirst`` was used (`#139`_).

.. _#139: https://github.com/pytest-dev/pytest-subtests/pull/139

0.13.0 (2024-07-07)
-------------------
0.13.0
------

*2024-07-07*

* Dropped support for EOL Python 3.7.
* Added support for ``-x/--exitfirst`` (`#134`_).
Expand All @@ -28,15 +38,19 @@ UNRELEASED
.. _#131: https://github.com/pytest-dev/pytest-subtests/pull/131
.. _#134: https://github.com/pytest-dev/pytest-subtests/pull/134

0.12.1 (2024-03-07)
-------------------
0.12.1
------

*2024-03-07*

* Fixed compatibility with upcoming pytest ``8.1.x``. (`#125`_).

.. _#125: https://github.com/pytest-dev/pytest-subtests/issues/125

0.12.0 (2024-03-06)
-------------------
0.12.0
------

*2024-03-06*

* Python 3.12 is now officially supported (`#113`_).
* Added typing support (`#115`_).
Expand All @@ -46,8 +60,10 @@ UNRELEASED
.. _#115: https://github.com/pytest-dev/pytest-subtests/pull/115


0.11.0 (2023-05-15)
-------------------
0.11.0
------

*2023-05-15*

* Logging is displayed for failing subtests (`#92`_)
* Passing subtests no longer turn the pytest output to yellow (as if warnings have been issued) (`#86`_). Thanks to `Andrew-Brock`_ for providing the solution.
Expand All @@ -59,32 +75,42 @@ UNRELEASED

.. _`Andrew-Brock`: https://github.com/Andrew-Brock

0.10.0 (2022-02-15)
-------------------
0.10.0
------

*2022-02-15*

* Added experimental support for suppressing subtest output dots in non-verbose mode with ``--no-subtests-shortletter`` -- this allows the native pytest column calculations to not be disrupted and minimizes unneeded output for large CI systems.

0.9.0 (2022-10-28)
------------------
0.9.0
-----

*2022-10-28*

* Python 3.11 is officially supported.
* Dropped support for Python 3.6.

0.8.0 (2022-05-26)
------------------
0.8.0
-----

*2022-05-26*

* Now passing subtests are shown in the test run summary at the end (for example: ``10 failed, 1 passed, 10 subtests passed in 0.10s``) (`#70`_).

.. _#70: https://github.com/pytest-dev/pytest-subtests/pull/70

0.7.0 (2022-02-13)
------------------
0.7.0
-----

*2022-02-13*

* Fixed support for pytest 7.0, and ``pytest>=7.0`` is now required.


0.6.0 (2022-01-15)
------------------
0.6.0
-----

*2022-01-15*

* ``pytest>=6.0`` is now required.
* Added official support for Python 3.10.
Expand All @@ -96,51 +122,67 @@ UNRELEASED
.. _#30: https://github.com/pytest-dev/pytest-subtests/pull/30
.. _#52: https://github.com/pytest-dev/pytest-subtests/pull/52

0.5.0 (2021-05-29)
------------------
0.5.0
-----

*2021-05-29*

* Added support for ``pytest.mark.xfail`` (`#40`_).

.. _#40: https://github.com/pytest-dev/pytest-subtests/pull/40

0.4.0 (2020-12-13)
------------------
0.4.0
-----

*2020-12-13*

* Added support for ``--pdb`` (`#22`_).

.. _#22: https://github.com/pytest-dev/pytest-subtests/issues/22

0.3.2 (2020-08-01)
------------------
0.3.2
-----

*2020-08-01*

* Fixed pytest 6.0 support.

0.3.1 (2020-05-20)
------------------
0.3.1
-----

*2020-05-20*

* Fixed pytest 5.4 support.

0.3.0 (2020-01-22)
------------------
0.3.0
-----

*2020-01-22*

* Dropped support for Python 3.4.
* ``subtests`` now correctly captures and displays stdout/stderr (`#18`_).

.. _#18: https://github.com/pytest-dev/pytest-subtests/issues/18

0.2.1 (2019-04-04)
------------------
0.2.1
-----

*2019-04-04*

* Fixed verbose output reporting on Linux (`#7`_).

.. _#7: https://github.com/pytest-dev/pytest-subtests/issues/7

0.2.0 (2019-04-03)
------------------
0.2.0
-----

*2019-04-03*

* Subtests are correctly reported with ``pytest-xdist>=1.28``.

0.1.0 (2019-04-01)
------------------
0.1.0
-----

*2019-04-01*

* First release to PyPI.
6 changes: 1 addition & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,7 @@ unittest subTest() example
Contributing
------------
Contributions are very welcome. Tests can be run with `tox`_:

.. code-block::
tox -e py37
Contributions are very welcome. Tests can be run with `tox`_.

License
-------
Expand Down
5 changes: 2 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ classifiers =
Topic :: Software Development :: Testing
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: Implementation :: CPython
Operating System :: OS Independent
License :: OSI Approved :: MIT License
Expand All @@ -29,8 +29,7 @@ keywords = test, unittest, pytest
install_requires =
attrs>=19.2.0
pytest>=7.4
typing_extensions;python_version<"3.8"
python_requires = >=3.7
python_requires = >=3.9
packages = find:
package_dir =
= src
Expand Down
5 changes: 1 addition & 4 deletions src/pytest_subtests/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
if TYPE_CHECKING:
from types import TracebackType

if sys.version_info < (3, 8):
from typing_extensions import Literal
else:
from typing import Literal
from typing import Literal


def pytest_addoption(parser: pytest.Parser) -> None:
Expand Down
6 changes: 1 addition & 5 deletions tests/test_subtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@

import sys
from pathlib import Path
from typing import Literal

import pytest

IS_PY311 = sys.version_info[:2] >= (3, 11)

if sys.version_info < (3, 8):
from typing_extensions import Literal
else:
from typing import Literal


@pytest.mark.parametrize("mode", ["normal", "xdist"])
class TestFixture:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38,py39,py310,py311,py312
envlist = py39,py310,py311,py312,py313

[testenv]
deps =
Expand Down

0 comments on commit fa35610

Please sign in to comment.