summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/source/test_file_loader.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2012-07-31 21:52:32 (GMT)
committerBarry Warsaw <barry@python.org>2012-07-31 21:52:32 (GMT)
commit0efcf99c9eebfd65f6dd7ecc5c94b1c340ad6513 (patch)
treef03cb64da635dd280d5230aa9642404c0af6db62 /Lib/test/test_importlib/source/test_file_loader.py
parent38f75cbc0048ff1a026f56e42d89132cf65792f7 (diff)
downloadcpython-0efcf99c9eebfd65f6dd7ecc5c94b1c340ad6513.zip
cpython-0efcf99c9eebfd65f6dd7ecc5c94b1c340ad6513.tar.gz
cpython-0efcf99c9eebfd65f6dd7ecc5c94b1c340ad6513.tar.bz2
abc fixes.
Diffstat (limited to 'Lib/test/test_importlib/source/test_file_loader.py')
-rw-r--r--Lib/test/test_importlib/source/test_file_loader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/source/test_file_loader.py b/Lib/test/test_importlib/source/test_file_loader.py
index c401cf7..90f9d30 100644
--- a/Lib/test/test_importlib/source/test_file_loader.py
+++ b/Lib/test/test_importlib/source/test_file_loader.py
@@ -29,6 +29,7 @@ class SimpleTest(unittest.TestCase):
# If fullname is not specified that assume self.name is desired.
class TesterMixin(importlib.abc.Loader):
def load_module(self, fullname): return fullname
+ def module_repr(self, module): return '<module>'
class Tester(importlib.abc.FileLoader, TesterMixin):
def get_code(self, _): pass
@@ -49,6 +50,7 @@ class SimpleTest(unittest.TestCase):
def get_code(self, _): pass
def get_source(self, _): pass
def is_package(self, _): pass
+ def module_repr(self, _): pass
path = 'some_path'
name = 'some_name'