summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-02 12:51:14 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-02 12:51:14 -0400
commit532ca16b158b8e8ffb8857237a801ec7e641bf46 (patch)
tree0cfbeedffe34378a1f5149a0bf05362dc8b3739b /tests/test_cmdline.py
parent959447537d8d8f4d91f5bf25b810e49bdaffddf6 (diff)
downloadpython-coveragepy-git-532ca16b158b8e8ffb8857237a801ec7e641bf46.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.py6
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):