summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_spwd.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_spwd.py')
-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,