From 099d3965735de418b5a69e3d13e1344fe1a69796 Mon Sep 17 00:00:00 2001 From: c0llab0rat0r <78339685+c0llab0rat0r@users.noreply.github.com> Date: Tue, 11 May 2021 10:58:52 -0500 Subject: [PATCH] Remove polyfill for contextlib.suppress (not needed since Python 3.4) --- test/run-tests.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/run-tests.py b/test/run-tests.py index 06a22d14..d4af4472 100755 --- a/test/run-tests.py +++ b/test/run-tests.py @@ -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 # ######################