mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #21503: Use test_both() consistently in test_importlib.
This commit is contained in:
parent
d50cee2045
commit
3497c0bf95
30 changed files with 526 additions and 428 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from . import util
|
||||
frozen_machinery, source_machinery = util.import_importlib('importlib.machinery')
|
||||
from . import util as test_util
|
||||
machinery = test_util.import_importlib('importlib.machinery')
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
|
@ -19,11 +19,6 @@ class WindowsRegistryFinderTests:
|
|||
self.assertIs(loader, None)
|
||||
|
||||
|
||||
class Frozen_WindowsRegistryFinderTests(WindowsRegistryFinderTests,
|
||||
unittest.TestCase):
|
||||
machinery = frozen_machinery
|
||||
|
||||
|
||||
class Source_WindowsRegistryFinderTests(WindowsRegistryFinderTests,
|
||||
unittest.TestCase):
|
||||
machinery = source_machinery
|
||||
(Frozen_WindowsRegistryFinderTests,
|
||||
Source_WindowsRegistryFinderTests
|
||||
) = test_util.test_both(WindowsRegistryFinderTests, machinery=machinery)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue