summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-04-16 20:17:30 (GMT)
committerGitHub <noreply@github.com>2022-04-16 20:17:30 (GMT)
commit9f06ff96ccbda25c447b6a6f94082ea1e7784d96 (patch)
tree0203f2cc2df6eb0544641c6fc44f7e8cc865a361 /Lib
parent304f5b63e904c3ab0b746ef7ad58c5c2ff0154a8 (diff)
downloadcpython-9f06ff96ccbda25c447b6a6f94082ea1e7784d96.zip
cpython-9f06ff96ccbda25c447b6a6f94082ea1e7784d96.tar.gz
cpython-9f06ff96ccbda25c447b6a6f94082ea1e7784d96.tar.bz2
gh-91217: deprecate nis (GH-91606)
Automerge-Triggered-By: GH:brettcannon
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_nis.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py
index a22142f..797c902 100644
--- a/Lib/test/test_nis.py
+++ b/Lib/test/test_nis.py
@@ -1,10 +1,13 @@
from test import support
from test.support import import_helper
import unittest
+import warnings
# Skip test if nis module does not exist.
-nis = import_helper.import_module('nis')
+with warnings.catch_warnings():
+ warnings.simplefilter("ignore", DeprecationWarning)
+ nis = import_helper.import_module('nis')
class NisTests(unittest.TestCase):