summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2009-07-22 04:27:34 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2009-07-22 04:27:34 (GMT)
commitb66c67d255b70ace25081a94cd30ffeee4b51e14 (patch)
tree752da6961120f5ef4e9c738b719158507259608d /Lib
parent2db046dc39fd759242b9803d54884e179d599ebf (diff)
downloadcpython-b66c67d255b70ace25081a94cd30ffeee4b51e14.zip
cpython-b66c67d255b70ace25081a94cd30ffeee4b51e14.tar.gz
cpython-b66c67d255b70ace25081a94cd30ffeee4b51e14.tar.bz2
Only skip test_nis on Solaris.
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):