Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
The browser teardown in `airgun.session.Session.__exit__` should be executed only once. Because when `Session` is nested in multiple context managers(*), the `__exit__` method is called for each one and this causes that the second and further `webdriver.quit()` call will fail, because the browser session was already stopped. (*) for example in the robottelo `session` fixture in `robottelo/pytest_fixtures/core/ui.py`. (cherry picked from commit 6b6423e) Co-authored-by: Pavel Novotny <[email protected]>
- Loading branch information