Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(66749)

Side by Side Diff: Lib/test/test_importlib/test_spec.py

Issue 18864: Implementation for PEP 451 (importlib.machinery.ModuleSpec)
Patch Set: Created 6 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/test/test_importlib/test_api.py ('k') | Lib/test/test_importlib/test_util.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 import unittest
2 import sys
3
4
5 class ModuleSpecTests(unittest.TestCase):
6
7 def test_spec_on_all_modules(self):
8 for name, module in sys.modules.items():
9 with self.subTest(name=name):
10 spec = module.__spec__
11 self.assertIsNot(spec, None)
OLDNEW
« no previous file with comments | « Lib/test/test_importlib/test_api.py ('k') | Lib/test/test_importlib/test_util.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+