Skip to content

Commit 3324ff5

Browse files
committed
add py311 to build matrix and fix test
1 parent ef4dccf commit 3324ff5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/testing/response_mocks_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ def mock_metadata():
3232

3333
def test_response_mock_signatures():
3434
"""Make sure the mocks' __call__ methods have the same signature as HttpFuture.response"""
35-
response_signature = inspect.getargspec(HttpFuture.response)
35+
response_signature = inspect.getfullargspec(HttpFuture.response)
3636

37-
assert inspect.getargspec(BravadoResponseMock.__call__) == response_signature
38-
assert inspect.getargspec(FallbackResultBravadoResponseMock.__call__) == response_signature
37+
assert inspect.getfullargspec(BravadoResponseMock.__call__) == response_signature
38+
assert inspect.getfullargspec(FallbackResultBravadoResponseMock.__call__) == response_signature
3939

4040

4141
def test_bravado_response(mock_result):

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,py310}-{default,fido}, mypy, pre-commit
2+
envlist = {py38,py310,py311}-{default,fido}, mypy, pre-commit
33

44
[testenv]
55
deps =

0 commit comments

Comments
 (0)