diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-22 04:27:34 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-22 04:27:34 (GMT) |
commit | b66c67d255b70ace25081a94cd30ffeee4b51e14 (patch) | |
tree | 752da6961120f5ef4e9c738b719158507259608d /Lib | |
parent | 2db046dc39fd759242b9803d54884e179d599ebf (diff) | |
download | cpython-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.py | 4 |
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): |