diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-07 10:17:18 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-07 10:17:18 -0500 |
commit | 488981cbf86c58ec4aadcfe6b151eb50b7bf7fdf (patch) | |
tree | 101634fa04eeb06eb9a88470068b1305b9dc21e1 | |
parent | f3ceb2ef4e185bedcbeb5727abd47f3bb7fe56f2 (diff) | |
download | python-coveragepy-git-488981cbf86c58ec4aadcfe6b151eb50b7bf7fdf.tar.gz |
Make sure all tests use super().setUp properly.
-rw-r--r-- | tests/test_concurrency.py | 2 | ||||
-rw-r--r-- | tests/test_process.py | 1 |
2 files changed, 2 insertions, 1 deletions
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. |