summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-05-04 20:13:25 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-05-04 20:13:25 -0400
commitf308bfe21c609968c25fa696fb1d35ba3c65b5be (patch)
tree52f6553c53248c00ed1a326c8fc6c8cf0d0314be /test
parent80132a0b9faad6de95828bb85e23271506aa3a4f (diff)
downloadpython-coveragepy-git-f308bfe21c609968c25fa696fb1d35ba3c65b5be.tar.gz
Pass values into coverage's contructor rather than set properties.
Diffstat (limited to 'test')
-rw-r--r--test/test_api.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_api.py b/test/test_api.py
index 7e363fd5..47dc3d08 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -163,8 +163,7 @@ class ApiTest(CoverageTest):
self.assertEqual(statements, missing)
# Measure with the stdlib.
- cov2 = coverage.coverage()
- cov2.cover_stdlib = True
+ cov2 = coverage.coverage(cover_stdlib=True)
cov2.start()
self.importModule("mymain")
cov2.stop()