Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
session: execute browser teardown only once (#1390)
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`.
- Loading branch information