diff options
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index a379d402..3baa2626 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -56,7 +56,11 @@ class BaseCmdLineTest(CoverageTest): # We'll invoke .coverage as the constructor, and then keep using the # same object as the resulting coverage object. mk.coverage.return_value = mk - mk.config = CoverageConfig() + + # The mock needs to get options, but shouldn't need to set them. + config = CoverageConfig() + mk.get_option = config.get_option + return mk def mock_command_line(self, args): |