diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-18 13:25:49 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-18 13:25:49 -0500 |
commit | 8d60d392c5d9b00560c4a9418902f12126dae125 (patch) | |
tree | c6634c5c0b940a32c1fb0afb36b4a928a91f3304 /tests/test_plugins.py | |
parent | 0d0836309b6354a07fb09cd8d28b309b6c8dba6c (diff) | |
download | python-coveragepy-git-8d60d392c5d9b00560c4a9418902f12126dae125.tar.gz |
Collect all the nudgy environment checks into coverage.env
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r-- | tests/test_plugins.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py index a1710c5f..f3b8d580 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -1,20 +1,13 @@ """Tests for plugins.""" -import os -import sys - -from nose.plugins.skip import SkipTest - import coverage +from coverage import env from coverage.control import Plugins import coverage.plugin from tests.coveragetest import CoverageTest -# Are we running with the C tracer or not? -C_TRACER = os.getenv('COVERAGE_TEST_TRACER', 'c') == 'c' - class FakeConfig(object): """A fake config for use in tests.""" @@ -142,14 +135,11 @@ class PluginTest(CoverageTest): cov.stop() -if not C_TRACER: +if not env.C_TRACER: class FileTracerTest(CoverageTest): """Tests of plugins that implement file_tracer.""" def test_plugin1(self): - if sys.platform == 'win32': - raise SkipTest("Plugin stuff is jank on windows.. fixing soon...") - self.make_file("simple.py", """\ import try_xyz a = 1 |