Skip to content

Commit 3322dfe

Browse files
committed
revert 3.7 changes
1 parent 8a082c9 commit 3322dfe

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
# TODO(https://github.com/googleapis/google-auth-library-python/issues/1722): `test_aiohttp_requests` depend on
7777
# aiohttp < 3.10.0 which is a bug. Investigate and remove the pinned aiohttp version.
7878
"aiohttp < 3.10.0",
79-
"mock; python_version < '3.8'",
8079
]
8180

8281
extras = {

testing/constraints-3.7.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ setuptools==40.3.0
1010
rsa==3.1.4
1111
aiohttp==3.6.2
1212
requests==2.20.0
13-
pyjwt==2.0
13+
pyjwt==2.0

tests/transport/aio/test_aiohttp.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
# limitations under the License.
1414

1515
import asyncio
16-
from unittest.mock import Mock, patch
17-
try:
18-
from unittest.mock import AsyncMock
19-
except ImportError:
20-
# Fallback for Python < 3.8
21-
from mock import AsyncMock
16+
from unittest.mock import AsyncMock, Mock, patch
2217

2318
from aioresponses import aioresponses # type: ignore
2419
import pytest # type: ignore

tests_async/oauth2/test_reauth_async.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414

1515
import copy
1616
from unittest import mock
17-
try:
18-
from unittest.mock import AsyncMock
19-
except ImportError:
20-
# Fallback for Python < 3.8
21-
from mock import AsyncMock
2217

2318
import pytest # type: ignore
2419

@@ -27,7 +22,7 @@
2722
from google.oauth2 import reauth
2823

2924

30-
MOCK_REQUEST = AsyncMock(spec=["transport.Request"])
25+
MOCK_REQUEST = mock.AsyncMock(spec=["transport.Request"])
3126
CHALLENGES_RESPONSE_TEMPLATE = {
3227
"status": "CHALLENGE_REQUIRED",
3328
"sessionId": "123",

0 commit comments

Comments
 (0)