~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/__init__.py

Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
from bzrlib import (
20
20
    bzrdir,
21
 
    plugin,
22
21
    )
 
22
from bzrlib import plugin as _mod_plugin
23
23
import bzrlib.branch
24
24
from bzrlib.tests.TestUtil import TestLoader
25
25
from bzrlib.tests.blackbox import ExternalBase
197
197
    suite = TestLoader().loadTestsFromModuleNames(testmod_names) 
198
198
 
199
199
    # Load any benchmarks from plugins
200
 
    for name, module in plugin.all_plugins().items():
201
 
        if getattr(module, 'bench_suite', None) is not None:
202
 
            suite.addTest(module.bench_suite())
 
200
    for name, plugin in _mod_plugin.plugins().items():
 
201
        if getattr(plugin.module, 'bench_suite', None) is not None:
 
202
            suite.addTest(plugin.module.bench_suite())
203
203
 
204
204
    return suite