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

Unified Diff: Lib/test/test_pkgutil.py

Issue 23014: Don't have importlib.abc.Loader.create_module() be optional
Patch Set: Created 4 years, 5 months 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
--- a/Lib/test/test_pkgutil.py Fri Dec 12 12:00:02 2014 -0500
+++ b/Lib/test/test_pkgutil.py Fri Dec 12 12:23:43 2014 -0500
@@ -104,6 +104,9 @@
class PkgutilPEP302Tests(unittest.TestCase):
class MyTestLoader(object):
+ def create_module(self, spec):
+ return None
+
def exec_module(self, mod):
# Count how many times the module is reloaded
mod.__dict__['loads'] = mod.__dict__.get('loads', 0) + 1
« Lib/test/test_importlib/test_util.py ('K') | « Lib/test/test_importlib/test_util.py ('k') | no next file » | no next file with comments »

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