Skip to content

Commit 3bf9fc8

Browse files
committed
Remove 'suppress_known_deprecation' helper.
1 parent 9a4720a commit 3bf9fc8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

importlib_resources/tests/util.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import abc
2-
import contextlib
32
import importlib
43
import io
54
import sys
65
import types
7-
import warnings
86
from pathlib import Path, PurePath
97

108
from . import data01
@@ -69,13 +67,6 @@ def create_package(file=None, path=None, is_package=True, contents=()):
6967
)
7068

7169

72-
@contextlib.contextmanager
73-
def suppress_known_deprecation():
74-
with warnings.catch_warnings(record=True) as ctx:
75-
warnings.simplefilter('default', category=DeprecationWarning)
76-
yield ctx
77-
78-
7970
class CommonTests(metaclass=abc.ABCMeta):
8071
"""
8172
Tests shared by test_open, test_path, and test_read.

0 commit comments

Comments
 (0)