diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2013-12-08 06:20:35 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2013-12-08 06:20:35 (GMT) |
commit | 9fe6d86709b0e769602ff55a6e5a202c440b9d8a (patch) | |
tree | ec3d7b1b0cbbd15658459e397c6905964c192331 /Lib/test/test_nis.py | |
parent | 774f909489ca1395ba1e3f3a1f3d43495df6cdfe (diff) | |
download | cpython-9fe6d86709b0e769602ff55a6e5a202c440b9d8a.zip cpython-9fe6d86709b0e769602ff55a6e5a202c440b9d8a.tar.gz cpython-9fe6d86709b0e769602ff55a6e5a202c440b9d8a.tar.bz2 |
Issue 19572: More silently skipped tests explicitly skipped.
Diffstat (limited to 'Lib/test/test_nis.py')
-rw-r--r-- | Lib/test/test_nis.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py index 830c24d..a3a3c26 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 |