Skip to content

test_get_platform hangs on x86_64-darwin when called via asyncify #1008

@sarahec

Description

@sarahec

Building for nixpkgs on x86_64-darwin ("Intel MacOS"), encountered the following error:

============================= test session starts ==============================
platform darwin -- Python 3.13.5, pytest-8.3.5, pluggy-1.6.0
rootdir: /private/tmp/nix-build-python3.13-anthropic-0.59.0.drv-0/source
configfile: pyproject.toml
testpaths: tests
plugins: asyncio-0.26.0, xdist-3.6.1, respx-0.22.0, anyio-4.9.0
asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=session, asyncio_default_test_loop_scope=function
2 workers [398 items]  m
........................................................................ [ 18%]
........................................................................ [ 36%]
........................................................................ [ 54%]
........................................................................ [ 72%]
........................................................................ [ 90%]
F.....................................                                   [100%]
=================================== FAILURES ===================================
_____________________ TestAsyncAnthropic.test_get_platform _____________________
[gw1] darwin -- Python 3.13.5 /nix/store/9zzyv1p496m8b7j8v3y2dqq1xii9anx5-python3-3.13.5/bin/python3.13
tests/test_client.py:1870: in test_get_platform
    raise AssertionError("calling get_platform using asyncify resulted in a hung process")
E   AssertionError: calling get_platform using asyncify resulted in a hung process
=========================== short test summary info ============================
FAILED tests/test_client.py::TestAsyncAnthropic::test_get_platform - AssertionError: calling get_platform using asyncify resulted in a hung process
======================== 1 failed, 397 passed in 39.99s ========================

Please let me know if you need any info to track this down.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions