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
commit9d726f22bdc1f8be96724017721a673ca7d03247 (patch)
tree506fa7c4ca84dbfe3373956c4aa13784e60d1614 /tests/test_oddball.py
parent98702b176acc7ebf5999aa67cf3cd86bb39ea1f5 (diff)
downloadpython-coveragepy-9d726f22bdc1f8be96724017721a673ca7d03247.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 5a331a2..1fa369a 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.