Skip to content

Allow disabling Wait Until Removed/Created timeout using None #5534

Closed

Description

@pekkaklarck

Wait Until Removed and Wait Until Created support a timeout that is 1 minute by default. Currently these timeouts can be disabled only by giving a negative value, but using None would be much more explicit. This doesn't have too high priority, though, because it typically is a good idea to have some timeout.

I noticed this when adding type hints to the OperatingSystem library (#5373) and half of the implementation is using type hint timedelta | None. The other half is using timeout = timeout.total_seconds() if timeout else -1 in the code.

Activity

  1. added this to the v7.4 milestone on Nov 3, 2025
  2. self-assigned this
    on Nov 3, 2025
  3. added a commit that references this issue on Nov 3, 2025
    eb7d773
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions