From fa9dfd8465ea881d530614afb5c1a4231948b46b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 4 May 2009 20:13:25 -0400 Subject: Pass values into coverage's contructor rather than set properties. --- test/test_api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/test_api.py') diff --git a/test/test_api.py b/test/test_api.py index 7e363fd..47dc3d0 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() -- cgit v1.2.1