mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #16803: Stop having test.test_importlib.abc ABCs inherit from
unittest.TestCase in prep of running tests under frozen and source importlib.
This commit is contained in:
parent
c60dd5b0d4
commit
b3d6afff2b
9 changed files with 16 additions and 16 deletions
|
@ -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()
|
||||
|
|
|
@ -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."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue