Skip to content

Commit b830f5d

Browse files
committed
Drop Python 3.8 and add Python 3.13
1 parent 04094f7 commit b830f5d

File tree

7 files changed

+13
-21
lines changed

7 files changed

+13
-21
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fail-fast: false
3333
matrix:
3434
os: ["ubuntu-latest", "windows-latest"]
35-
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
35+
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
3636

3737
steps:
3838
- uses: actions/checkout@v4

CHANGELOG.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ CHANGELOG
44
UNRELEASED
55
----------
66

7-
* Fix output when using ``TestCase.skipTest`` (`#169`_).
7+
* Add support for Python 3.13.
88

9-
* Fix ``pytest`` requirement to ``>=7.3`` (`#159`_).
9+
* Dropped support for EOL Python 3.8.
10+
11+
* Fixed output when using ``TestCase.skipTest`` (`#169`_).
12+
13+
* Fixed ``pytest`` requirement to ``>=7.3`` (`#159`_).
1014

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

README.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,7 @@ unittest subTest() example
147147
148148
Contributing
149149
------------
150-
Contributions are very welcome. Tests can be run with `tox`_:
151-
152-
.. code-block::
153-
154-
tox -e py37
150+
Contributions are very welcome. Tests can be run with `tox`_.
155151

156152
License
157153
-------

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ classifiers =
1414
Topic :: Software Development :: Testing
1515
Programming Language :: Python
1616
Programming Language :: Python :: 3
17-
Programming Language :: Python :: 3.8
1817
Programming Language :: Python :: 3.9
1918
Programming Language :: Python :: 3.10
2019
Programming Language :: Python :: 3.11
2120
Programming Language :: Python :: 3.12
21+
Programming Language :: Python :: 3.13
2222
Programming Language :: Python :: Implementation :: CPython
2323
Operating System :: OS Independent
2424
License :: OSI Approved :: MIT License
@@ -29,8 +29,7 @@ keywords = test, unittest, pytest
2929
install_requires =
3030
attrs>=19.2.0
3131
pytest>=7.4
32-
typing_extensions;python_version<"3.8"
33-
python_requires = >=3.7
32+
python_requires = >=3.9
3433
packages = find:
3534
package_dir =
3635
= src

src/pytest_subtests/plugin.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@
3434
if TYPE_CHECKING:
3535
from types import TracebackType
3636

37-
if sys.version_info < (3, 8):
38-
from typing_extensions import Literal
39-
else:
40-
from typing import Literal
37+
from typing import Literal
4138

4239

4340
def pytest_addoption(parser: pytest.Parser) -> None:

tests/test_subtests.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22

33
import sys
44
from pathlib import Path
5+
from typing import Literal
56

67
import pytest
78

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

10-
if sys.version_info < (3, 8):
11-
from typing_extensions import Literal
12-
else:
13-
from typing import Literal
14-
1511

1612
@pytest.mark.parametrize("mode", ["normal", "xdist"])
1713
class TestFixture:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py38,py39,py310,py311,py312
2+
envlist = py39,py310,py311,py312,py313
33

44
[testenv]
55
deps =

0 commit comments

Comments
 (0)