[Checkins] [zopefoundation/zope.testrunner] 6ca964: fix(findcode): better finding of test code
GitHub
noreply at github.com
Wed Dec 17 12:08:44 CET 2014
Branch: refs/heads/nested
Home: https://github.com/zopefoundation/zope.testrunner
Commit: 6ca964286c671a43a1d28302174ca0b20cfedb9c
https://github.com/zopefoundation/zope.testrunner/commit/6ca964286c671a43a1d28302174ca0b20cfedb9c
Author: Patrick Gerken <do3cc at patrick-gerken.de>
Date: 2014-12-17 (Wed, 17 Dec 2014)
Changed paths:
M CHANGES.rst
M src/zope/testrunner/find.py
M src/zope/testrunner/tests/test_doctest.py
M src/zope/testrunner/tests/testrunner-discovery.txt
Log Message:
-----------
fix(findcode): better finding of test code
This fix sorts the --paths to look for code.
Longest paths come first. This is for cases where
one checks out other sources within his source directory.
In such a case this structure can happen:
my_package
my_package/src/some_other_package
Now when my_package gets found first. It logs an import
error and then goes on.
by sorting with longest paths first. I always get the most
specific match first. Since the loop is short circuited here,
it will never look at my_package.
This fixes #15
More information about the checkins
mailing list