diff options
Diffstat (limited to 'tests/testdata/python3/data')
| -rw-r--r-- | tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py b/tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py index b0d64337..f7bd5739 100644 --- a/tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py +++ b/tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py @@ -1 +1,5 @@ -__import__('pkg_resources').declare_namespace(__name__)
\ No newline at end of file +import warnings + +with warnings.catch_warnings(): + warnings.simplefilter("ignore", DeprecationWarning) + __import__("pkg_resources").declare_namespace(__name__) |
