Skip to content

Thread hang with pytest-httpserver, hypothesis>=6.0.4 on Apple M1 Pro, Mac OS 12.6.2, Python>=3.10 #3585

@handrews

Description

@handrews

The change made in hypothesis 6.0.4 to address a race condition works fine with pytest-httpserver on my Apple M1 laptop with Python <= 3.9, but hangs on Python 3.10 and 3.11. The problem also exists with hypothesis 6.68.2 (the latest as of this writing).

Making two calls to recursive() is all that is needed to reproduce the problem, as documented in this gist (with environment information, shell sessions, and python -vvv output diffs). It is not necessary to actually run a test, or to do anything at all with pytest-httpserver, it just needs to be installed and noticed as a plugin by pytest.

I have also filed this as csernazs/pytest-httpserver#217, as I have not even thought about threads in many years and have gone about as far as I can looking into this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething is clearly wrong here

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions