Skip to content

Commit 099d396

Browse files
c0llab0rat0rntninja
authored andcommitted
Remove polyfill for contextlib.suppress (not needed since Python 3.4)
1 parent 6a133e3 commit 099d396

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

Diff for: test/run-tests.py

-13
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,6 @@
1414
import pytest
1515

1616

17-
if not hasattr(contextlib, "suppress"):
18-
"""
19-
Polyfill for ``contextlib.suppress``
20-
"""
21-
@contextlib.contextmanager
22-
def _contextlib_suppress(*exceptions):
23-
try:
24-
yield
25-
except exceptions:
26-
pass
27-
contextlib.suppress = _contextlib_suppress
28-
29-
3017
######################
3118
# Test configuration #
3219
######################

0 commit comments

Comments
 (0)