From 488981cbf86c58ec4aadcfe6b151eb50b7bf7fdf Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 7 Feb 2015 10:17:18 -0500 Subject: Make sure all tests use super().setUp properly. --- tests/test_concurrency.py | 2 +- tests/test_process.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index b745f86f..b7c1364d 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -226,11 +226,11 @@ class MultiprocessingTest(CoverageTest): """Test support of the multiprocessing module.""" def setUp(self): + super(MultiprocessingTest, self).setUp() # Currently, this doesn't work on Windows, something about pickling # the monkey-patched Process class? if env.WINDOWS: raise SkipTest - super(MultiprocessingTest, self).setUp() def test_multiprocessing(self): self.make_file("multi.py", """\ diff --git a/tests/test_process.py b/tests/test_process.py index 43fdc1bd..3dec597a 100644 --- a/tests/test_process.py +++ b/tests/test_process.py @@ -717,6 +717,7 @@ def possible_pth_dirs(): class ProcessCoverageMixin(object): """Set up a .pth file that causes all sub-processes to be coverage'd""" + def setUp(self): super(ProcessCoverageMixin, self).setUp() # Find a place to put a .pth file. -- cgit v1.2.1