summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--CHANGELOG4
-rw-r--r--nose/plugins/cover.py3
3 files changed, 6 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index 0ff1fcc..c3fee51 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -19,3 +19,4 @@ Rosen Diankov
Buck Golemon
Bobby Impollonia
Takafumi Arakaki
+Peter Bengtsson
diff --git a/CHANGELOG b/CHANGELOG
index 618658d..97ab4fc 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,4 @@
-1.0.1
+1.1.0
- Revised multiprocessing implementation so that it works for test generators
(#399). Thanks to Rosen Diankov for the patch.
@@ -15,6 +15,8 @@
- Fixes Xunit plugin for reporting generator tests (#369)
- Fixed subtle bug in ``--first-package-wins`` that made it unpredictable
(#293)
+- Fixes coverage module names -- 'cal' used to also match calendar which was a
+ bug (#433)
- Fixes case where teardown_class() was called more than once (#408). Thanks
to Heng Liu for the patch.
- Makes --plugins more succinct when there are no options (#235)
diff --git a/nose/plugins/cover.py b/nose/plugins/cover.py
index 371d9f5..259bf0c 100644
--- a/nose/plugins/cover.py
+++ b/nose/plugins/cover.py
@@ -12,6 +12,7 @@ variable.
"""
import logging
import os
+import re
import sys
from nose.plugins.base import Plugin
from nose.util import src, tolist
@@ -274,7 +275,7 @@ class Coverage(Plugin):
return False
if self.coverPackages:
for package in self.coverPackages:
- if (name.startswith(package)
+ if (re.findall(r'^%s\b' % re.escape(package), name)
and (self.coverTests
or not self.conf.testMatch.search(name))):
log.debug("coverage for %s", name)