Skip to content

Execution of _pytest.hookspec.pytest_runtest_teardown is delayed #93

Closed
@pytestbot

Description

@pytestbot

Originally reported by: Dave Hunt (BitBucket: davehunt, GitHub: davehunt)


It appears that since <> our plugin's pytest_runtest_teardown is often delayed in execution to the point of causing test failures.

We run Selenium tests using Selenium Grid for parallel execution. Since the above mentioned changeset if a test has to wait for an available Selenium node then the pytest_runtest_teardown is not executing until after the test session is timed out by Selenium. This means that the teardown method will fail as it attempts to use the session that has just timed out.

I can replicate this 100% of the time with this changeset. Please let me know how I can assist with resolving this issue.

Thanks in advance.


Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions