mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-91217: deprecate spwd (#91846)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
28890427c5
commit
692e9078a1
4 changed files with 13 additions and 1 deletions
|
@ -1,9 +1,12 @@
|
|||
import os
|
||||
import unittest
|
||||
from test.support import import_helper
|
||||
import warnings
|
||||
|
||||
|
||||
spwd = import_helper.import_module('spwd')
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("ignore", DeprecationWarning)
|
||||
spwd = import_helper.import_module('spwd')
|
||||
|
||||
|
||||
@unittest.skipUnless(hasattr(os, 'geteuid') and os.geteuid() == 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue