[Python-checkins] r74160 - python/branches/py3k/Lib/test/test_nis.py
alexandre.vassalotti
python-checkins at python.org
Wed Jul 22 06:27:34 CEST 2009
Author: alexandre.vassalotti
Date: Wed Jul 22 06:27:34 2009
New Revision: 74160
Log:
Only skip test_nis on Solaris.
Modified:
python/branches/py3k/Lib/test/test_nis.py
Modified: python/branches/py3k/Lib/test/test_nis.py
==============================================================================
--- python/branches/py3k/Lib/test/test_nis.py (original)
+++ python/branches/py3k/Lib/test/test_nis.py Wed Jul 22 06:27:34 2009
@@ -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):
More information about the Python-checkins
mailing list