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

Unified Diff: Lib/test/test_importlib/test_spec.py

Issue 18864: Implementation for PEP 451 (importlib.machinery.ModuleSpec)
Patch Set: Created 6 years, 1 month ago
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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
new file mode 100644
--- /dev/null
+++ b/Lib/test/test_importlib/test_spec.py
@@ -0,0 +1,11 @@
+import unittest
+import sys
+
+
+class ModuleSpecTests(unittest.TestCase):
+
+ def test_spec_on_all_modules(self):
+ for name, module in sys.modules.items():
+ with self.subTest(name=name):
+ spec = module.__spec__
+ self.assertIsNot(spec, None)
« 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+