Skip to content

Commit

Permalink
get rid of pytest deprecation warning for pytest 4
Browse files Browse the repository at this point in the history
  • Loading branch information
lmtierney committed Nov 28, 2018
1 parent de6b253 commit 849ff25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def load(self, name):

@pytest.fixture(autouse=True)
def browser_guard(request, browser_manager):
only = request.node.get_marker('only')
only = request.node.get_closest_marker('only')
if only:
browsers = list(only.args[0])
if browser_manager.name not in browsers:
Expand Down

0 comments on commit 849ff25

Please sign in to comment.