From: Alexandre Vassalotti Date: Wed, 22 Jul 2009 04:27:34 +0000 (+0000) Subject: Only skip test_nis on Solaris. X-Git-Tag: v3.2a1~2758 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b66c67d255b70ace25081a94cd30ffeee4b51e14;p=thirdparty%2FPython%2Fcpython.git Only skip test_nis on Solaris. --- diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py index 7aad33d55d99..eb4284d3ea13 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):