Overview
pytest 8.3, released on November 15, 2024, adds official Python 3.13 support and improves compatibility with the latest versions.
Main Features
Python 3.13
pytest is fully compatible with Python 3.13, including support for the free-threaded mode and improved error messages.
python
# test_example.py
import pytest
def test_addition():
assert 2 + 2 == 4
@pytest.mark.parametrize('x,y,result', [
(1, 2, 3),
(5, 5, 10),
(-1, 1, 0),
])
def test_sum(x, y, result):
assert x + y == result
# pytest test_example.py -v
