commit | 883bc638335a57a6e6a6344c2fc132c4f9a0ec42 | [log] [tgz] |
---|---|---|
author | Hai Shi <shihai1992@gmail.com> | Mon Jul 06 17:12:49 2020 +0800 |
committer | GitHub <noreply@github.com> | Mon Jul 06 11:12:49 2020 +0200 |
tree | 1dd74a4aeeb80d8b85ff18de700763199a7bc1bc | |
parent | 9ce8132e1f2339cfe116dfd4795574182c2245b4 [diff] [blame] |
bpo-40275: Use new test.support helper submodules in tests (GH-21314)
diff --git a/Lib/test/test_nis.py b/Lib/test/test_nis.py index 21074c6..a22142f 100644 --- a/Lib/test/test_nis.py +++ b/Lib/test/test_nis.py
@@ -1,8 +1,10 @@ from test import support +from test.support import import_helper import unittest + # Skip test if nis module does not exist. -nis = support.import_module('nis') +nis = import_helper.import_module('nis') class NisTests(unittest.TestCase):