Skip to content

Commit c1bdff9

Browse files
authored
Merge pull request #8494 from nicoddemus/python-3.10
2 parents 878a51e + a7416a5 commit c1bdff9

File tree

7 files changed

+23
-1
lines changed

7 files changed

+23
-1
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@ jobs:
2727
"windows-py37",
2828
"windows-py37-pluggy",
2929
"windows-py38",
30+
"windows-py39",
31+
"windows-py310",
3032

3133
"ubuntu-py36",
3234
"ubuntu-py37",
3335
"ubuntu-py37-pluggy",
3436
"ubuntu-py37-freeze",
3537
"ubuntu-py38",
3638
"ubuntu-py39",
39+
"ubuntu-py310",
3740
"ubuntu-pypy3",
3841

3942
"macos-py37",
@@ -62,6 +65,14 @@ jobs:
6265
os: windows-latest
6366
tox_env: "py38-unittestextras"
6467
use_coverage: true
68+
- name: "windows-py39"
69+
python: "3.9"
70+
os: windows-latest
71+
tox_env: "py39-xdist"
72+
- name: "windows-py310"
73+
python: "3.10-dev"
74+
os: windows-latest
75+
tox_env: "py310-xdist"
6576

6677
- name: "ubuntu-py36"
6778
python: "3.6"
@@ -88,6 +99,10 @@ jobs:
8899
python: "3.9"
89100
os: ubuntu-latest
90101
tox_env: "py39-xdist"
102+
- name: "ubuntu-py310"
103+
python: "3.10-dev"
104+
os: ubuntu-latest
105+
tox_env: "py310-xdist"
91106
- name: "ubuntu-pypy3"
92107
python: "pypy-3.7"
93108
os: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ repos:
4242
rev: v1.17.0
4343
hooks:
4444
- id: setup-cfg-fmt
45+
args: [--max-py-version=3.10]
4546
- repo: https://github.com/pre-commit/pygrep-hooks
4647
rev: v1.8.0
4748
hooks:

changelog/8494.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Python 3.10 is now supported.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ filterwarnings = [
2626
# produced by older pyparsing<=2.2.0.
2727
"default:Using or importing the ABCs:DeprecationWarning:pyparsing.*",
2828
"default:the imp module is deprecated in favour of importlib:DeprecationWarning:nose.*",
29+
# distutils is deprecated in 3.10, scheduled for removal in 3.12
30+
"ignore:The distutils package is deprecated:DeprecationWarning",
2931
# produced by python3.6/site.py itself (3.6.7 on Travis, could not trigger it with 3.6.8)."
3032
"ignore:.*U.*mode is deprecated:DeprecationWarning:(?!(pytest|_pytest))",
3133
# produced by pytest-xdist

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ classifiers =
2121
Programming Language :: Python :: 3.7
2222
Programming Language :: Python :: 3.8
2323
Programming Language :: Python :: 3.9
24+
Programming Language :: Python :: 3.10
2425
Topic :: Software Development :: Libraries
2526
Topic :: Software Development :: Testing
2627
Topic :: Utilities

testing/test_skipping.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,8 @@ def test_hello():
876876
result = pytester.runpytest()
877877
result.stdout.fnmatch_lines(
878878
[
879-
"*TypeError: __init__() got multiple values for argument 'reason' - maybe you meant pytest.mark.skipif?"
879+
"*TypeError: *__init__() got multiple values for argument 'reason'"
880+
" - maybe you meant pytest.mark.skipif?"
880881
]
881882
)
882883

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ envlist =
88
py37
99
py38
1010
py39
11+
py310
1112
pypy3
1213
py37-{pexpect,xdist,unittestextras,numpy,pluggymain}
1314
doctesting

0 commit comments

Comments
 (0)