From b66c67d255b70ace25081a94cd30ffeee4b51e14 Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Wed, 22 Jul 2009 04:27:34 +0000 Subject: Only skip test_nis on Solaris. --- Lib/test/test_nis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- cgit v0.12