diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-04-21 09:49:57 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-04-21 09:49:57 -0400 |
commit | f576188dc66eca4a9891f6d8bd6f8d4d006ee310 (patch) | |
tree | 71d7c4ff8de04399005f8596a6eebd0ec1edfe85 /tests/test_plugins.py | |
parent | 7b9c1053bb75eab197acfcec53e9bb6ea7568a0e (diff) | |
download | python-coveragepy-git-f576188dc66eca4a9891f6d8bd6f8d4d006ee310.tar.gz |
Check for skipping tests before super.setUp
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r-- | tests/test_plugins.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 74f301e3..d4a1680e 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -278,9 +278,9 @@ class FileTracerTest(CoverageTest): """Tests of plugins that implement file_tracer.""" def setUp(self): - super(FileTracerTest, self).setUp() if not env.C_TRACER: self.skipTest("Plugins are only supported with the C tracer.") + super(FileTracerTest, self).setUp() class GoodFileTracerTest(FileTracerTest): @@ -890,9 +890,9 @@ class DynamicContextPluginTest(CoverageTest): """Tests of plugins that implement `dynamic_context`.""" def setUp(self): - super(DynamicContextPluginTest, self).setUp() if not env.C_TRACER: self.skipTest("Plugins are only supported with the C tracer.") + super(DynamicContextPluginTest, self).setUp() def make_plugin_capitalized_testnames(self, filename): self.make_file(filename, """\ @@ -1106,9 +1106,9 @@ class DynamicContextPluginOtherTracersTest(CoverageTest): """Tests of plugins that implement `dynamic_context`.""" def setUp(self): - super(DynamicContextPluginOtherTracersTest, self).setUp() if env.C_TRACER: self.skipTest("These tests are for tracers not implemented in C.") + super(DynamicContextPluginOtherTracersTest, self).setUp() def test_other_tracer_support(self): self.make_file("context_plugin.py", """\ |