diff options
Diffstat (limited to 'nose/config.py')
-rw-r--r-- | nose/config.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nose/config.py b/nose/config.py index 125eb55..72554a5 100644 --- a/nose/config.py +++ b/nose/config.py @@ -147,7 +147,7 @@ class Config(object): self.env = env = kw.pop('env', {}) self.args = () - self.testMatch = re.compile(r'(?:^|[\\b_\\.%s-])[Tt]est' % os.sep) + self.testMatch = re.compile(r'(?:\b|_)[Tt]est') self.addPaths = not env.get('NOSE_NOPATH', False) self.configSection = 'nosetests' self.debug = env.get('NOSE_DEBUG') @@ -180,8 +180,7 @@ class Config(object): def __init__(self, **kw): self.env = env = kw.pop('env', {}) self.args = () - self.testMatchPat = env.get('NOSE_TESTMATCH', - r'(?:^|[\b_\.%s-])[Tt]est' % os.sep) + self.testMatchPat = env.get('NOSE_TESTMATCH', r'(?:\b|_)[Tt]est') self.testMatch = re.compile(self.testMatchPat) self.addPaths = not env.get('NOSE_NOPATH', False) self.configSection = 'nosetests' |