mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-91217: deprecate nis (GH-91606)
Automerge-Triggered-By: GH:brettcannon
This commit is contained in:
parent
304f5b63e9
commit
9f06ff96cc
4 changed files with 12 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue