]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Only skip test_nis on Solaris.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Wed, 22 Jul 2009 04:27:34 +0000 (04:27 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Wed, 22 Jul 2009 04:27:34 +0000 (04:27 +0000)
Lib/test/test_nis.py

index 7aad33d55d99187f1b60ad29429eeb43205afc1a..eb4284d3ea1324ac61d0a80e2ad6df6d51214437 100644 (file)
@@ -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):