gapic-generator-python icon indicating copy to clipboard operation
gapic-generator-python copied to clipboard

generated unit tests fail with pytest-asyncio 1.0.0

Open parthea opened this issue 7 months ago • 0 comments

See build log below where tests fail with pytest-asyncio==1.0.0 released on May 26.

py3133partheniou@partheniou-vm-3:~/git/gapic-generator-python$ nox -s showcase-3.13
nox > Running session showcase-3.13
nox > Creating virtual environment (virtualenv) using python3.13 in .nox/showcase-3-13
nox > ----------------------------------------------------------------------
nox > Note: Showcase must be running for these tests to work.
nox > See https://github.com/googleapis/gapic-showcase
nox > ----------------------------------------------------------------------
nox > python -m pip install -e .
nox > python -m pip install grpcio-tools
nox > curl https://github.com/googleapis/gapic-showcase/releases/download/v0.35.0/gapic-showcase-0.35.0.desc -L --output /tmp/tmpvzy1ikew/showcase.desc
nox > curl https://github.com/googleapis/gapic-showcase/releases/download/v0.35.0/showcase_v1beta1.yaml -L --output /tmp/tmpvzy1ikew/showcase_v1beta1.yaml
nox > curl https://github.com/googleapis/gapic-showcase/releases/download/v0.35.0/showcase_grpc_service_config.json -L --output /tmp/tmpvzy1ikew/showcase_grpc_service_config.json
nox > python -m grpc_tools.protoc --experimental_allow_proto3_optional --descriptor_set_in=/tmp/tmpvzy1ikew/showcase.desc --python_gapic_opt=python-gapic-templates=DEFAULT,transport=grpc+rest,service-yaml=/tmp/tmpvzy1ikew/showcase_v1beta1.yaml,retry-config=/tmp/tmpvzy1ikew/showcase_grpc_service_config.json --python_gapic_out=/tmp/tmpvzy1ikew google/showcase/v1beta1/echo.proto google/showcase/v1beta1/identity.proto google/showcase/v1beta1/messaging.proto
nox > python -m pip install -e /tmp/tmpvzy1ikew -r /tmp/tmpvzy1ikew/testing/constraints-3.13.txt
nox > python -m pip install --no-cache-dir --force-reinstall --upgrade 'google-auth[aiohttp]!=2.40.0'
nox > python -m pip install pytest pytest-asyncio
nox > py.test --quiet tests/system
/usr/local/google/home/partheniou/git/gapic-generator-python/.nox/showcase-3-13/lib/python3.13/site-packages/pytest_asyncio/plugin.py:208: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
......FsFs..........Fs..................FsFsFsFsFs^C
=============================================================================================================================================== FAILURES ===============================================================================================================================================
___________________________________________________________________________________________________________________________________ test_client_async[grpc_asyncio] ____________________________________________________________________________________________________________________________________

async_echo = <google.showcase_v1beta1.services.echo.async_client.EchoAsyncClient object at 0x7f6dbd8630e0>

    @pytest.mark.asyncio
    async def test_client_async(async_echo):
        async with async_echo:
>           response = await async_echo.echo({"content": "hello"})

tests/system/test_client_context_manager.py:42: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/tmpvzy1ikew/google/showcase_v1beta1/services/echo/async_client.py:399: in echo
    response = await rpc(
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/retry/retry_unary_async.py:230: in retry_wrapped_func
    return await retry_target(
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/retry/retry_unary_async.py:160: in retry_target
    _retry_error_helper(
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/retry/retry_base.py:212: in _retry_error_helper
    raise final_exc from source_exc
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/retry/retry_unary_async.py:155: in retry_target
    return await target()
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/grpc_helpers_async.py:85: in __await__
    response = yield from self._call.__await__()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <grpc.aio._interceptor.InterceptedUnaryUnaryCall object at 0x7f6dbd861940>

    def __await__(self):
>       call = yield from self._interceptors_task.__await__()
E       RuntimeError: Task <Task pending name='Task-1' coro=<test_client_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_client_context_manager.py:42> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/asyncio/base_events.py:181]> got Future <Task pending name='Task-2' coro=<InterceptedUnaryUnaryCall._invoke() running at /usr/local/google/home/partheniou/git/gapic-generator-python/.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:652> cb=[InterceptedCall._fire_or_add_pending_done_callbacks()]> attached to a different loop

.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:471: RuntimeError
______________________________________________________________________________________________________________________________ test_client_destroyed_async[grpc_asyncio] _______________________________________________________________________________________________________________________________

async_echo = <google.showcase_v1beta1.services.echo.async_client.EchoAsyncClient object at 0x7f6dbd867d90>

    @pytest.mark.asyncio
    async def test_client_destroyed_async(async_echo):
        await async_echo.__aexit__(None, None, None)
        with pytest.raises((grpc._cython.cygrpc.UsageError, exceptions.TransportError)):
>           await async_echo.echo({"content": "hello"})

tests/system/test_client_context_manager.py:49: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/tmpvzy1ikew/google/showcase_v1beta1/services/echo/async_client.py:399: in echo
    response = await rpc(
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/retry/retry_unary_async.py:230: in retry_wrapped_func
    return await retry_target(
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/retry/retry_unary_async.py:160: in retry_target
    _retry_error_helper(
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/retry/retry_base.py:212: in _retry_error_helper
    raise final_exc from source_exc
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/retry/retry_unary_async.py:155: in retry_target
    return await target()
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/grpc_helpers_async.py:85: in __await__
    response = yield from self._call.__await__()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <grpc.aio._interceptor.InterceptedUnaryUnaryCall object at 0x7f6dbd6fc2d0>

    def __await__(self):
>       call = yield from self._interceptors_task.__await__()
E       RuntimeError: Task <Task pending name='Task-4' coro=<test_client_destroyed_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_client_context_manager.py:49> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/asyncio/base_events.py:181]> got Future <Task pending name='Task-5' coro=<InterceptedUnaryUnaryCall._invoke() running at /usr/local/google/home/partheniou/git/gapic-generator-python/.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:652> cb=[InterceptedCall._fire_or_add_pending_done_callbacks()]> attached to a different loop

.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:471: RuntimeError
_____________________________________________________________________________________________________________________________________ test_lro_async[grpc_asyncio] _____________________________________________________________________________________________________________________________________

async_echo = <google.showcase_v1beta1.services.echo.async_client.EchoAsyncClient object at 0x7f6dbd6fdbd0>

    @pytest.mark.asyncio
    async def test_lro_async(async_echo):
    
>       future = await async_echo.wait(
            {
                "end_time": datetime.now(tz=timezone.utc) + timedelta(seconds=1),
                "success": {
                    "content": "The hail in Wales falls mainly on the snails...eventually."
                },
            }
        )

tests/system/test_lro.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/tmpvzy1ikew/google/showcase_v1beta1/services/echo/async_client.py:1181: in wait
    response = await rpc(
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/grpc_helpers_async.py:85: in __await__
    response = yield from self._call.__await__()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <grpc.aio._interceptor.InterceptedUnaryUnaryCall object at 0x7f6dbd6fdd10>

    def __await__(self):
>       call = yield from self._interceptors_task.__await__()
E       RuntimeError: Task <Task pending name='Task-7' coro=<test_lro_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_lro.py:41> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/asyncio/base_events.py:181]> got Future <Task pending name='Task-8' coro=<InterceptedUnaryUnaryCall._invoke() running at /usr/local/google/home/partheniou/git/gapic-generator-python/.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:652> cb=[InterceptedCall._fire_or_add_pending_done_callbacks()]> attached to a different loop

.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:471: RuntimeError
________________________________________________________________________________________________________________________________ test_get_operation_async[grpc_asyncio] ________________________________________________________________________________________________________________________________

async_echo = <google.showcase_v1beta1.services.echo.async_client.EchoAsyncClient object at 0x7f6dbd7923f0>

    @pytest.mark.asyncio
    async def test_get_operation_async(async_echo):
        with pytest.raises(exceptions.NotFound):
>           await async_echo.get_operation({"name": "operations/**"})

tests/system/test_mixins.py:91: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/tmpvzy1ikew/google/showcase_v1beta1/services/echo/async_client.py:1378: in get_operation
    response = await rpc(
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/grpc_helpers_async.py:85: in __await__
    response = yield from self._call.__await__()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <grpc.aio._interceptor.InterceptedUnaryUnaryCall object at 0x7f6dbd792060>

    def __await__(self):
>       call = yield from self._interceptors_task.__await__()
E       RuntimeError: Task <Task pending name='Task-10' coro=<test_get_operation_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_mixins.py:91> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/asyncio/base_events.py:181]> got Future <Task pending name='Task-11' coro=<InterceptedUnaryUnaryCall._invoke() running at /usr/local/google/home/partheniou/git/gapic-generator-python/.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:652> cb=[InterceptedCall._fire_or_add_pending_done_callbacks()]> attached to a different loop

.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:471: RuntimeError
_______________________________________________________________________________________________________________________________ test_list_operations_async[grpc_asyncio] _______________________________________________________________________________________________________________________________

async_echo = <google.showcase_v1beta1.services.echo.async_client.EchoAsyncClient object at 0x7f6dbd793e10>

    @pytest.mark.asyncio
    async def test_list_operations_async(async_echo):
>       response = await async_echo.list_operations({"name": "operations/name"})

tests/system/test_mixins.py:95: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/tmpvzy1ikew/google/showcase_v1beta1/services/echo/async_client.py:1326: in list_operations
    response = await rpc(
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/grpc_helpers_async.py:85: in __await__
    response = yield from self._call.__await__()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <grpc.aio._interceptor.InterceptedUnaryUnaryCall object at 0x7f6dbcc7c050>

    def __await__(self):
>       call = yield from self._interceptors_task.__await__()
E       RuntimeError: Task <Task pending name='Task-13' coro=<test_list_operations_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_mixins.py:95> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/asyncio/base_events.py:181]> got Future <Task pending name='Task-14' coro=<InterceptedUnaryUnaryCall._invoke() running at /usr/local/google/home/partheniou/git/gapic-generator-python/.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:652> cb=[InterceptedCall._fire_or_add_pending_done_callbacks()]> attached to a different loop

.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:471: RuntimeError
______________________________________________________________________________________________________________________________ test_delete_operation_async[grpc_asyncio] _______________________________________________________________________________________________________________________________

async_echo = <google.showcase_v1beta1.services.echo.async_client.EchoAsyncClient object at 0x7f6dbd8a9b50>

    @pytest.mark.asyncio
    async def test_delete_operation_async(async_echo):
>       await async_echo.delete_operation({"name": "operations/name"})

tests/system/test_mixins.py:100: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/tmpvzy1ikew/google/showcase_v1beta1/services/echo/async_client.py:1434: in delete_operation
    await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/grpc_helpers_async.py:85: in __await__
    response = yield from self._call.__await__()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <grpc.aio._interceptor.InterceptedUnaryUnaryCall object at 0x7f6dbd8a9c70>

    def __await__(self):
>       call = yield from self._interceptors_task.__await__()
E       RuntimeError: Task <Task pending name='Task-16' coro=<test_delete_operation_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_mixins.py:100> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/asyncio/base_events.py:181]> got Future <Task pending name='Task-17' coro=<InterceptedUnaryUnaryCall._invoke() running at /usr/local/google/home/partheniou/git/gapic-generator-python/.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:652> cb=[InterceptedCall._fire_or_add_pending_done_callbacks()]> attached to a different loop

.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:471: RuntimeError
______________________________________________________________________________________________________________________________ test_cancel_operation_async[grpc_asyncio] _______________________________________________________________________________________________________________________________

async_echo = <google.showcase_v1beta1.services.echo.async_client.EchoAsyncClient object at 0x7f6dbd89b020>

    @pytest.mark.asyncio
    async def test_cancel_operation_async(async_echo):
>       await async_echo.cancel_operation({"name": "operations/name"})

tests/system/test_mixins.py:104: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/tmpvzy1ikew/google/showcase_v1beta1/services/echo/async_client.py:1485: in cancel_operation
    await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/grpc_helpers_async.py:85: in __await__
    response = yield from self._call.__await__()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <grpc.aio._interceptor.InterceptedUnaryUnaryCall object at 0x7f6dbd89b460>

    def __await__(self):
>       call = yield from self._interceptors_task.__await__()
E       RuntimeError: Task <Task pending name='Task-19' coro=<test_cancel_operation_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_mixins.py:104> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/asyncio/base_events.py:181]> got Future <Task pending name='Task-20' coro=<InterceptedUnaryUnaryCall._invoke() running at /usr/local/google/home/partheniou/git/gapic-generator-python/.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:652> cb=[InterceptedCall._fire_or_add_pending_done_callbacks()]> attached to a different loop

.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:471: RuntimeError
_______________________________________________________________________________________________________________________________ test_set_iam_policy_async[grpc_asyncio] ________________________________________________________________________________________________________________________________

async_echo = <google.showcase_v1beta1.services.echo.async_client.EchoAsyncClient object at 0x7f6dbcc01ae0>

    @pytest.mark.asyncio
    async def test_set_iam_policy_async(async_echo):
>       policy = await async_echo.set_iam_policy(
            {"resource": "users/user", "policy": {"version": 20240919}}
        )

tests/system/test_mixins.py:108: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/tmp/tmpvzy1ikew/google/showcase_v1beta1/services/echo/async_client.py:1599: in set_iam_policy
    response = await rpc(
.nox/showcase-3-13/lib/python3.13/site-packages/google/api_core/grpc_helpers_async.py:85: in __await__
    response = yield from self._call.__await__()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <grpc.aio._interceptor.InterceptedUnaryUnaryCall object at 0x7f6dbcc01150>

    def __await__(self):
>       call = yield from self._interceptors_task.__await__()
E       RuntimeError: Task <Task pending name='Task-22' coro=<test_set_iam_policy_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_mixins.py:108> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/asyncio/base_events.py:181]> got Future <Task pending name='Task-23' coro=<InterceptedUnaryUnaryCall._invoke() running at /usr/local/google/home/partheniou/git/gapic-generator-python/.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:652> cb=[InterceptedCall._fire_or_add_pending_done_callbacks()]> attached to a different loop

.nox/showcase-3-13/lib/python3.13/site-packages/grpc/aio/_interceptor.py:471: RuntimeError
======================================================================================================================================= short test summary info ========================================================================================================================================
FAILED tests/system/test_client_context_manager.py::test_client_async[grpc_asyncio] - RuntimeError: Task <Task pending name='Task-1' coro=<test_client_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_client_context_manager.py:42> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/pytho...
FAILED tests/system/test_client_context_manager.py::test_client_destroyed_async[grpc_asyncio] - RuntimeError: Task <Task pending name='Task-4' coro=<test_client_destroyed_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_client_context_manager.py:49> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3...
FAILED tests/system/test_lro.py::test_lro_async[grpc_asyncio] - RuntimeError: Task <Task pending name='Task-7' coro=<test_lro_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_lro.py:41> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/asyncio/base_eve...
FAILED tests/system/test_mixins.py::test_get_operation_async[grpc_asyncio] - RuntimeError: Task <Task pending name='Task-10' coro=<test_get_operation_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_mixins.py:91> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/as...
FAILED tests/system/test_mixins.py::test_list_operations_async[grpc_asyncio] - RuntimeError: Task <Task pending name='Task-13' coro=<test_list_operations_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_mixins.py:95> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/...
FAILED tests/system/test_mixins.py::test_delete_operation_async[grpc_asyncio] - RuntimeError: Task <Task pending name='Task-16' coro=<test_delete_operation_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_mixins.py:100> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.1...
FAILED tests/system/test_mixins.py::test_cancel_operation_async[grpc_asyncio] - RuntimeError: Task <Task pending name='Task-19' coro=<test_cancel_operation_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_mixins.py:104> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.1...
FAILED tests/system/test_mixins.py::test_set_iam_policy_async[grpc_asyncio] - RuntimeError: Task <Task pending name='Task-22' coro=<test_set_iam_policy_async() running at /usr/local/google/home/partheniou/git/gapic-generator-python/tests/system/test_mixins.py:108> cb=[_run_until_complete_cb() at /usr/local/google/home/partheniou/.pyenv/versions/3.13.3/lib/python3.13/...

parthea avatar May 28 '25 14:05 parthea