[Checkins] SVN: z3c.coverage/trunk/ Bug: the logic for ignoring
unit and functional test modules also used to
Marius Gedminas
marius at pov.lt
Thu Feb 21 14:33:22 EST 2008
Log message for revision 84121:
Bug: the logic for ignoring unit and functional test modules also used to
ignore modules and packages called 'testing'.
Changed:
U z3c.coverage/trunk/CHANGES.txt
U z3c.coverage/trunk/src/z3c/coverage/coveragereport.py
-=-
Modified: z3c.coverage/trunk/CHANGES.txt
===================================================================
--- z3c.coverage/trunk/CHANGES.txt 2008-02-21 19:30:36 UTC (rev 84120)
+++ z3c.coverage/trunk/CHANGES.txt 2008-02-21 19:33:22 UTC (rev 84121)
@@ -7,6 +7,8 @@
- Bug: sort the results of os.listdir() in README.txt to avoid nondeterministic
failures.
+- Bug: the logic for ignoring unit and functional test modules also used to
+ ignore modules and packages called 'testing'.
1.1.1 (2008-01-31)
------------------
Modified: z3c.coverage/trunk/src/z3c/coverage/coveragereport.py
===================================================================
--- z3c.coverage/trunk/src/z3c/coverage/coveragereport.py 2008-02-21 19:30:36 UTC (rev 84120)
+++ z3c.coverage/trunk/src/z3c/coverage/coveragereport.py 2008-02-21 19:33:22 UTC (rev 84121)
@@ -386,6 +386,8 @@
False
>>> filter_fn('z3c.coverage.ftests.test_bar.cover')
False
+ >>> filter_fn('z3c.coverage.testing.cover')
+ True
>>> filter_fn('something-unrelated.txt')
False
>>> filter_fn('<doctest something-useless.cover')
@@ -393,7 +395,7 @@
"""
return (filename.endswith('.cover') and
- 'test' not in filename and
+ 'tests' not in filename and
not filename.startswith('<'))
More information about the Checkins
mailing list