mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -37,8 +37,10 @@ class FindSpecTests(abc.FinderTests):
|
|||
spec = self.find('<not real>')
|
||||
self.assertIsNone(spec)
|
||||
|
||||
Frozen_FindSpecTests, Source_FindSpecTests = util.test_both(FindSpecTests,
|
||||
machinery=machinery)
|
||||
|
||||
(Frozen_FindSpecTests,
|
||||
Source_FindSpecTests
|
||||
) = util.test_both(FindSpecTests, machinery=machinery)
|
||||
|
||||
|
||||
class FinderTests(abc.FinderTests):
|
||||
|
|
@ -72,8 +74,10 @@ class FinderTests(abc.FinderTests):
|
|||
loader = self.find('<not real>')
|
||||
self.assertIsNone(loader)
|
||||
|
||||
Frozen_FinderTests, Source_FinderTests = util.test_both(FinderTests,
|
||||
machinery=machinery)
|
||||
|
||||
(Frozen_FinderTests,
|
||||
Source_FinderTests
|
||||
) = util.test_both(FinderTests, machinery=machinery)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue