Skip to content

Commit

Permalink
De-duplicate notWindows decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Sep 11, 2020
1 parent d4d97de commit 2335967
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions test/__init__.py
Expand Up @@ -148,7 +148,7 @@ def notWindows(test):

@six.wraps(test)
def wrapper(*args, **kwargs):
msg = "{} is flaky on Windows".format(test.__name__)
msg = "{name} does not run on Windows".format(name=test.__name__)
if platform.system() == "Windows":
pytest.skip(msg)
return test(*args, **kwargs)
Expand Down Expand Up @@ -179,19 +179,6 @@ def wrapper(*args, **kwargs):
return wrapper


def notWindows(test):
"""Skips this test when running on Windows"""

@six.wraps(test)
def wrapper(*args, **kwargs):
msg = "{name} does not run on Windows".format(name=test.__name__)
if platform.system() == "Windows":
pytest.skip(msg)
return test(*args, **kwargs)

return wrapper


def notOpenSSL098(test):
"""Skips this test for Python 3.5 macOS python.org distribution"""

Expand Down

0 comments on commit 2335967

Please sign in to comment.