summaryrefslogtreecommitdiff
path: root/Lib/test/test_nis.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_nis.py')
-rw-r--r--Lib/test/test_nis.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py
index 830c24d781..a3a3c260e3 100644
--- a/Lib/test/test_nis.py
+++ b/Lib/test/test_nis.py
@@ -12,11 +12,7 @@ class NisTests(unittest.TestCase):
maps = nis.maps()
except nis.error as msg:
# NIS is probably not active, so this test isn't useful
- if support.verbose:
- print("Test Skipped:", msg)
- # Can't raise SkipTest as regrtest only recognizes the exception
- # import time.
- return
+ self.skipTest(str(msg))
try:
# On some systems, this map is only accessible to the
# super user