You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
I'm packaging for pkgsrc. When running the self tests, there are some problems.
Test dependencies are not documented
There is a problem with using AsyncMock.
ImportError while importing test module '/scratch/security/py-google-auth/work/google_auth-2.35.0/tests/transport/aio/test_aiohttp.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/pkg/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/transport/aio/test_aiohttp.py:18: in <module>
from mock import AsyncMock, Mock, patch
E ImportError: cannot import name 'AsyncMock' from 'mock' (/usr/pkg/lib/python3.12/site-packages/mock/__init__.py)
Environment details
OS: NetBSD/10.99.12
Python version: Python 3.12.6
pip version: n/a
google-auth version: 2.35.0
Steps to reproduce
Run the self tests, see problems with missing dependencies. Most can be fixed by just adding them, but I need a patch for the asyncmock issue:
I'm packaging for pkgsrc. When running the self tests, there are some problems.
Environment details
google-authversion: 2.35.0Steps to reproduce
Run the self tests, see problems with missing dependencies. Most can be fixed by just adding them, but I need a patch for the asyncmock issue:
The full list of test dependencies seems to be (as of 2.35.0):