summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_nis.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py
index 7aad33d..eb4284d 100644
--- a/Lib/test/test_nis.py
+++ b/Lib/test/test_nis.py
@@ -1,10 +1,12 @@
from test import support
import unittest
+import sys
# Skip test if nis module does not exist.
nis = support.import_module('nis')
-raise unittest.SkipTest("test_nis hangs on Solaris")
+if sys.platform.startswith("sunos"):
+ raise unittest.SkipTest("test_nis hangs on Solaris")
class NisTests(unittest.TestCase):
def test_maps(self):