diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-10-05 10:00:02 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-10-05 10:00:02 -0400 |
commit | 2deeb7e5418cf6e556c2cd5d6f892aafb239ad3a (patch) | |
tree | f7917a2bfd08b19de20208f3de058c6a6613eebc /coverage/test_helpers.py | |
parent | 015833869ac4495672495ffa281f888745e53fef (diff) | |
download | python-coveragepy-2deeb7e5418cf6e556c2cd5d6f892aafb239ad3a.tar.gz |
Make the test helpers more correct on their own.
Diffstat (limited to 'coverage/test_helpers.py')
-rw-r--r-- | coverage/test_helpers.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/coverage/test_helpers.py b/coverage/test_helpers.py index efe68dc..082fc15 100644 --- a/coverage/test_helpers.py +++ b/coverage/test_helpers.py @@ -132,8 +132,13 @@ class StdStreamCapturingMixin(TestCase): return self.captured_stderr.getvalue() -class TempDirMixin(TestCase): - """A test case mixin that creates a temp directory and files in it.""" +class TempDirMixin(SysPathAwareMixin, ModuleAwareMixin, TestCase): + """A test case mixin that creates a temp directory and files in it. + + Includes SysPathAwareMixin and ModuleAwareMixin, because making and using + temp dirs like this will also need that kind of isolation. + + """ # Our own setting: most of these tests run in their own temp directory. run_in_temp_dir = True |