Skip to content

Add timeout to testdir.run() #4073

@altendky

Description

@altendky

I would like to rewrite this pytest-twisted test but the new way would run indefinitely on failure. It's already using testdir.run() but that doesn't support a timeout. There's spawn_pytest() and spawn() but they involve pexpect which doesn't seem right. What's proper? I can certainly provide a PR for adding a timeout to testdir.run() if that's the answer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: pytesterrelated to the pytester builtin plugintype: enhancementnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions