From f308bfe21c609968c25fa696fb1d35ba3c65b5be 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 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() -- cgit v1.2.1