diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-01 06:48:18 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-01 06:48:18 -0500 |
commit | 3699416b508085a8fc1e7fa77ed6fe6c219617f0 (patch) | |
tree | ae0c92d33c65607f0a504746c853611e164413e7 /tests/test_plugins.py | |
parent | 1440b69fab484580404be21101179b7fc7a02057 (diff) | |
download | python-coveragepy-git-3699416b508085a8fc1e7fa77ed6fe6c219617f0.tar.gz |
Move Plugins so that plugin.py is just interface definitions
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r-- | tests/test_plugins.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 6a1d1f7d..655053cc 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -1,11 +1,12 @@ """Tests for plugins.""" -import os, sys +import os +import sys from nose.plugins.skip import SkipTest import coverage -from coverage.plugin import Plugins +from coverage.control import Plugins import coverage.plugin @@ -221,6 +222,7 @@ if not C_TRACER: def snoop_on_callbacks(cov): cov_should_trace = cov._should_trace should_trace_filenames = set() + def snoop_should_trace(filename, frame): assert filename not in should_trace_filenames should_trace_filenames.add(filename) @@ -229,6 +231,7 @@ def snoop_on_callbacks(cov): cov_check_include = cov._check_include_omit_etc check_include_filenames = set() + def snoop_check_include_filenames(filename, frame): assert filename not in check_include_filenames check_include_filenames.add(filename) |