diff options
author | Brett Cannon <brett@python.org> | 2013-10-25 16:33:59 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-10-25 16:33:59 (GMT) |
commit | b3d6afff2be489a6e6aefbd0826eeacbe565f6d7 (patch) | |
tree | a38316d4dbfe83e2505fc622b6b382e8feb741af /Lib/test/test_importlib/builtin | |
parent | c60dd5b0d4eee2bd239b91565d2ecaa582c4fca5 (diff) | |
download | cpython-b3d6afff2be489a6e6aefbd0826eeacbe565f6d7.zip cpython-b3d6afff2be489a6e6aefbd0826eeacbe565f6d7.tar.gz cpython-b3d6afff2be489a6e6aefbd0826eeacbe565f6d7.tar.bz2 |
Issue #16803: Stop having test.test_importlib.abc ABCs inherit from
unittest.TestCase in prep of running tests under frozen and source
importlib.
Diffstat (limited to 'Lib/test/test_importlib/builtin')
-rw-r--r-- | Lib/test/test_importlib/builtin/test_finder.py | 9 | ||||
-rw-r--r-- | Lib/test/test_importlib/builtin/test_loader.py | 2 |
2 files changed, 3 insertions, 8 deletions
diff --git a/Lib/test/test_importlib/builtin/test_finder.py b/Lib/test/test_importlib/builtin/test_finder.py index 146538d..4280217 100644 --- a/Lib/test/test_importlib/builtin/test_finder.py +++ b/Lib/test/test_importlib/builtin/test_finder.py @@ -6,7 +6,7 @@ from . import util as builtin_util import sys import unittest -class FinderTests(abc.FinderTests): +class FinderTests(unittest.TestCase, abc.FinderTests): """Test find_module() for built-in modules.""" @@ -46,10 +46,5 @@ class FinderTests(abc.FinderTests): -def test_main(): - from test.support import run_unittest - run_unittest(FinderTests) - - if __name__ == '__main__': - test_main() + unittest.main() diff --git a/Lib/test/test_importlib/builtin/test_loader.py b/Lib/test/test_importlib/builtin/test_loader.py index 8e186e7..8eba4e8 100644 --- a/Lib/test/test_importlib/builtin/test_loader.py +++ b/Lib/test/test_importlib/builtin/test_loader.py @@ -9,7 +9,7 @@ import types import unittest -class LoaderTests(abc.LoaderTests): +class LoaderTests(unittest.TestCase, abc.LoaderTests): """Test load_module() for built-in modules.""" |