From 14babb257b744323b70e18eb3ebffe848e6b70ee Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 5 Oct 2014 10:00:02 -0400 Subject: Make the test helpers more correct on their own. --- coverage/test_helpers.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'coverage/test_helpers.py') diff --git a/coverage/test_helpers.py b/coverage/test_helpers.py index efe68dcd..082fc15e 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 -- cgit v1.2.1