bpo-40275: Use new test.support helper submodules in tests (GH-21314)

This commit is contained in:
Hai Shi 2020-07-06 17:12:49 +08:00 committed by GitHub
parent 9ce8132e1f
commit 883bc63833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 225 additions and 194 deletions

View file

@ -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):