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 7d47b1c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/__init__.py
Expand Up @@ -143,19 +143,6 @@ def wrapper(*args, **kwargs):
return wrapper


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

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

return wrapper


def onlyBrotlipy():
return pytest.mark.skipif(brotli is None, reason="only run if brotlipy is present")

Expand Down

0 comments on commit 7d47b1c

Please sign in to comment.