diff options
-rw-r--r-- | tests/test_api.py | 2 | ||||
-rw-r--r-- | tests/test_concurrency.py | 2 | ||||
-rw-r--r-- | tests/test_context.py | 4 | ||||
-rw-r--r-- | tests/test_plugins.py | 6 | ||||
-rw-r--r-- | tests/test_process.py | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 24fe8776..22020cb4 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -509,9 +509,9 @@ class NamespaceModuleTest(UsingModulesMixin, CoverageTest): """Test PEP-420 namespace modules.""" def setUp(self): - super(NamespaceModuleTest, self).setUp() if not env.PYBEHAVIOR.namespaces_pep420: self.skipTest("Python before 3.3 doesn't have namespace packages") + super(NamespaceModuleTest, self).setUp() def test_explicit_namespace_module(self): self.make_file("main.py", "import namespace_420\n") diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 2877b7c2..85f4a3f2 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -365,9 +365,9 @@ class MultiprocessingTest(CoverageTest): """Test support of the multiprocessing module.""" def setUp(self): - super(MultiprocessingTest, self).setUp() if not multiprocessing: self.skipTest("No multiprocessing in this Python") # pragma: only jython + super(MultiprocessingTest, self).setUp() def try_multiprocessing_code( self, code, expected_out, the_module, concurrency="multiprocessing" diff --git a/tests/test_context.py b/tests/test_context.py index e5ab4800..f34a1062 100644 --- a/tests/test_context.py +++ b/tests/test_context.py @@ -112,10 +112,10 @@ class DynamicContextTest(CoverageTest): """Tests of dynamically changing contexts.""" def setUp(self): - super(DynamicContextTest, self).setUp() - self.skip_unless_data_storage_is("sql") if not env.C_TRACER: self.skipTest("Only the C tracer supports dynamic contexts") + super(DynamicContextTest, self).setUp() + self.skip_unless_data_storage_is("sql") SOURCE = """\ def helper(lineno): 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", """\ diff --git a/tests/test_process.py b/tests/test_process.py index f234a9ef..6d8133cd 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -1092,9 +1092,9 @@ class AliasedCommandTest(CoverageTest): run_in_temp_dir = False def setUp(self): - super(AliasedCommandTest, self).setUp() if env.JYTHON: self.skipTest("Coverage command names don't work on Jython") + super(AliasedCommandTest, self).setUp() def test_major_version_works(self): # "coverage2" works on py2 @@ -1210,9 +1210,9 @@ class UnicodeFilePathsTest(CoverageTest): """Tests of using non-ascii characters in the names of files.""" def setUp(self): - super(UnicodeFilePathsTest, self).setUp() if env.JYTHON: self.skipTest("Jython doesn't like accented file names") + super(UnicodeFilePathsTest, self).setUp() def test_accented_dot_py(self): # Make a file with a non-ascii character in the filename. |