Message177327
| Author |
rbcollins |
| Recipients |
rbcollins |
| Date |
2012年12月11日.09:14:51 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1355217291.85.0.41912767842.issue16662@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In loader.py:
if fnmatch(path, pattern):
# only check load_tests if the package directory itself matches the filter
name = self._get_name_from_path(full_path)
package = self._get_module_from_name(name)
load_tests = getattr(package, 'load_tests', None)
tests = self.loadTestsFromModule(package, use_load_tests=False)
But pattern is test*.py by default, and packages will never match that.
Its not at all clear why this is special cased at all, but if it is, we'll need a separate pattern. (Its not special cased in the bzrlib implementation that acted as the initial implementation). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年12月11日 09:14:51 | rbcollins | set | recipients:
+ rbcollins |
| 2012年12月11日 09:14:51 | rbcollins | set | messageid: <1355217291.85.0.41912767842.issue16662@psf.upfronthosting.co.za> |
| 2012年12月11日 09:14:51 | rbcollins | link | issue16662 messages |
| 2012年12月11日 09:14:51 | rbcollins | create |
|