summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-04-23 21:48:17 (GMT)
committerGitHub <noreply@github.com>2022-04-23 21:48:17 (GMT)
commit692e9078a10b268530f8da7d3095cfb05c48435b (patch)
treea56ddd66970808ab1721dc57f6c07cd5d838f70a /Lib
parent28890427c58d30f1041b36859733159475c67496 (diff)
downloadcpython-692e9078a10b268530f8da7d3095cfb05c48435b.zip
cpython-692e9078a10b268530f8da7d3095cfb05c48435b.tar.gz
cpython-692e9078a10b268530f8da7d3095cfb05c48435b.tar.bz2
gh-91217: deprecate spwd (#91846)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_spwd.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_spwd.py b/Lib/test/test_spwd.py
index a143acc..50766c2 100644
--- a/Lib/test/test_spwd.py
+++ b/Lib/test/test_spwd.py
@@ -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,