From 84824af89127c5e78dd3deab1adf84c595833586 Mon Sep 17 00:00:00 2001 From: Joshua Bronson Date: Wed, 1 Jun 2022 21:44:36 +0000 Subject: [PATCH] Test with Python 3.11 (currently in beta) --- .github/workflows/test.yml | 1 + pytest.ini | 2 ++ tox.ini | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86deac4..b421f49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,7 @@ jobs: include: # See the following link for all available Python versions: # https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json + - {name: '3.11-beta', python: '3.11.0-beta.2', tox: py311} # remove workaround from pytest.ini once on beta3+ - {name: '3.10', python: '3.10', tox: py310} - {name: '3.9', python: '3.9', tox: py39} - {name: '3.8', python: '3.8', tox: py38} diff --git a/pytest.ini b/pytest.ini index 58871e9..6ec0803 100644 --- a/pytest.ini +++ b/pytest.ini @@ -7,6 +7,8 @@ addopts = --verbose --doctest-modules --doctest-glob=tests/*.txt + # workaround for Python 3.11 beta, see https://github.com/pytest-dev/pytest/issues/10008#issuecomment-1142722627 + --assert=plain # pytest-doctest is missing too many features to use for the doctests in the Sphinx docs # (e.g. still no skipif support: https://github.com/thisch/pytest-sphinx/issues/9), diff --git a/tox.ini b/tox.ini index 5194045..40ebaa3 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py3{10,9,8,7} + py3{11,10,9,8,7} pypy3{9,8,7} lint docs