zopefoundation/zope.testrunner — pull request #16 by do3cc (2014-12-17 11:09:01+00:00)
Title: 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