diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-02 12:51:14 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-02 12:51:14 -0400 |
commit | 88fbb0bc8142e71d29d26edf7bd6e47ac1cd7445 (patch) | |
tree | d7dc6ac4deb4129d7d8c70ea8bf0a5cc7dbde282 /tests/test_cmdline.py | |
parent | f9b9abb5b81bd9efbb7f8b283d28af2bbf7808c7 (diff) | |
download | python-coveragepy-88fbb0bc8142e71d29d26edf7bd6e47ac1cd7445.tar.gz |
Change the coverage.config item-access syntax to a real method call.
The square brackets were too cute, and I couldn't figure out how to document
them anyway!
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 a379d40..3baa262 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): |