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 | 663aa0e5d53a8dcd8cd6ed76e2fa662925b99ea7 (patch) | |
tree | 608eb69e619323181f190169765a0505cc212547 /tests/test_plugins.py | |
parent | 0ba8f11a359ae1d525688b488bab0c06c9dfe518 (diff) | |
download | python-coveragepy-663aa0e5d53a8dcd8cd6ed76e2fa662925b99ea7.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 6a1d1f7..655053c 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) |