Skip to content

Commit 1015337

Browse files
authored
Merge pull request #304 from danigm/python311
tests: Support python 3.11
2 parents c47a4e7 + 7190d58 commit 1015337

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.7", "3.8", "3.9", "3.10"]
19+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2020
os: ["macos-latest", "windows-latest", "ubuntu-latest"]
2121
include:
2222
- python-version: "3.6"

tests/test_etag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def test_not_modified_releases_connection(self, server, url):
144144

145145
with ExitStack() as stack:
146146
for mod in response_mods:
147-
with suppress(ImportError):
147+
with suppress(ImportError, AttributeError):
148148
stack.enter_context(patch(mod, Mock(return_value=resp)))
149149

150150
sess.get(etag_url)

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
; SPDX-License-Identifier: Apache-2.0
44

55
[tox]
6-
envlist = py{36,37,38,39,310}, mypy
6+
envlist = py{36,37,38,39,310,311}, mypy
77

88
[gh-actions]
99
python =
@@ -12,6 +12,7 @@ python =
1212
3.8: py38
1313
3.9: py39
1414
3.10: py310, mypy
15+
3.11: py311
1516

1617
[testenv]
1718
deps = pytest

0 commit comments

Comments
 (0)