summaryrefslogtreecommitdiff
path: root/tests/coveragetest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-02-10 07:08:18 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-02-10 07:08:18 -0500
commitfac9f94f1665c7dc9ca2eab676c1d3fc52a854fb (patch)
tree3daa37af01e62b26a88a1677c14a73dd41d663ee /tests/coveragetest.py
parent5d8d4b634c475b4f5517e18f9bf580574d9a032a (diff)
downloadpython-coveragepy-git-fac9f94f1665c7dc9ca2eab676c1d3fc52a854fb.tar.gz
Get rid of an unnecessary method
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r--tests/coveragetest.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index 306df3b8..cb5d6711 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -109,16 +109,6 @@ class CoverageTest(
invalidate_import_caches()
- def import_local_file(self, modname, modfile=None):
- """Import a local file as a module.
-
- Opens a file in the current directory named `modname`.py, imports it
- as `modname`, and returns the module object. `modfile` is the file to
- import if it isn't in the current directory.
-
- """
- return import_local_file(modname, modfile)
-
def start_import_stop(self, cov, modname, modfile=None):
"""Start coverage, import a file, then stop coverage.
@@ -132,7 +122,7 @@ class CoverageTest(
cov.start()
try: # pragma: nested
# Import the Python file, executing it.
- mod = self.import_local_file(modname, modfile)
+ mod = import_local_file(modname, modfile)
finally: # pragma: nested
# Stop coverage.py.
cov.stop()