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 | d6e2d5c1034a7cc0e2bfac251bfe5b4ec8c73036 (patch) | |
tree | 0ede8f6fc1a108784a0a726b35332f2e04d41690 | |
parent | 44a21889e3090aa84748076c378ded2a649fa124 (diff) | |
download | python-coveragepy-d6e2d5c1034a7cc0e2bfac251bfe5b4ec8c73036.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 b745f86..b7c1364 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 43fdc1b..3dec597 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. |