-from test.test_support import verbose, run_unittest
+from test import test_support
import unittest
import nis
maps = nis.maps()
except nis.error, msg:
# NIS is probably not active, so this test isn't useful
- if verbose:
- self.fail("(failing because of verbose mode) %s" % msg)
+ if test_support.verbose:
+ print "Test Skipped:", msg
+ # Can't raise TestSkipped as regrtest only recognizes the exception
+ # import time.
return
try:
# On some systems, this map is only accessible to the
break
def test_main():
- run_unittest(NisTests)
+ test_support.run_unittest(NisTests)
if __name__ == '__main__':
test_main()
Tests
-----
+- test_nis no longer fails when test.test_support.verbose is true and NIS is
+ not set up on the testing machine.
+
- Output comparison tests are no longer supported.
- Rewrite test_errno to use unittest and no longer be a no-op.