Skip to content

Commit

Permalink
Deprected MarkInfo resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
tking16 committed Aug 7, 2020
1 parent 0cb31f8 commit 857f30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_appium/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def test_example():
# Filter tests that are not targeted for this platform
current_platform = config._variables.get('capabilities',{}).get('platformName','').lower()
def select_test(item):
platform_marker = item.get_marker("platform")
platform_marker = item.get_closest_marker("platform")
if platform_marker and platform_marker.args and current_platform:
test_platform_specified = platform_marker.args[0].lower()
if test_platform_specified != current_platform:
Expand Down

0 comments on commit 857f30a

Please sign in to comment.