Skip to content

Commit

Permalink
Remove polyfill for contextlib.suppress (not needed since Python 3.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0llab0rat0r authored and ntninja committed May 18, 2021
1 parent 6a133e3 commit 099d396
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,6 @@
import pytest


if not hasattr(contextlib, "suppress"):
"""
Polyfill for ``contextlib.suppress``
"""
@contextlib.contextmanager
def _contextlib_suppress(*exceptions):
try:
yield
except exceptions:
pass
contextlib.suppress = _contextlib_suppress


######################
# Test configuration #
######################
Expand Down

0 comments on commit 099d396

Please sign in to comment.