summaryrefslogtreecommitdiff
path: root/tests/test_oddball.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/test_oddball.py
parent5d8d4b634c475b4f5517e18f9bf580574d9a032a (diff)
downloadpython-coveragepy-git-fac9f94f1665c7dc9ca2eab676c1d3fc52a854fb.tar.gz
Get rid of an unnecessary method
Diffstat (limited to 'tests/test_oddball.py')
-rw-r--r--tests/test_oddball.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_oddball.py b/tests/test_oddball.py
index 5a331a29..1fa369aa 100644
--- a/tests/test_oddball.py
+++ b/tests/test_oddball.py
@@ -10,6 +10,7 @@ import pytest
import coverage
from coverage import env
+from coverage.backward import import_local_file
from coverage.files import abs_file
from tests.coveragetest import CoverageTest
@@ -333,7 +334,7 @@ class ExceptionTest(CoverageTest):
# Import all the modules before starting coverage, so the def lines
# won't be in all the results.
for mod in "oops fly catch doit".split():
- self.import_local_file(mod)
+ import_local_file(mod)
# Each run nests the functions differently to get different
# combinations of catching exceptions and letting them fly.