commit | 3db8a3432bd84b58bdc7da2c9872777c537a4d09 | [log] [tgz] |
---|---|---|
author | R. David Murray <rdmurray@bitdance.com> | Mon Mar 30 23:05:48 2009 +0000 |
committer | R. David Murray <rdmurray@bitdance.com> | Mon Mar 30 23:05:48 2009 +0000 |
tree | 1a274c25cb002b9cb4474ff0882e2e5a563f9038 | |
parent | dc340eedaa71bb6a86fd887a807020ccf1cbf520 [diff] [blame] |
Change more tests to use import_module for the modules that should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring.
diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py index 0026953..8d49550 100644 --- a/Lib/test/test_nis.py +++ b/Lib/test/test_nis.py
@@ -1,6 +1,7 @@ from test import test_support import unittest -import nis + +nis = test_support.import_module('nis') class NisTests(unittest.TestCase): def test_maps(self):