~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Robert Collins
  • Date: 2005-11-29 23:20:31 UTC
  • Revision ID: robertc@robertcollins.net-20051129232031-916cdaefe3a3c19b
    * bzrlib.plugin.all_plugins has been changed from an attribute to a 
      query method. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
674
674
        suite.addTest(TestLoader().loadTestsFromModule(m))
675
675
    for m in (MODULES_TO_DOCTEST):
676
676
        suite.addTest(DocTestSuite(m))
677
 
    for p in bzrlib.plugins.__dict__:
678
 
        if hasattr(p, 'test_suite'):
679
 
            suite.addTest(p.test_suite())
 
677
    for name, plugin in bzrlib.plugin.all_plugins().items():
 
678
        if hasattr(plugin, 'test_suite'):
 
679
            suite.addTest(plugin.test_suite())
680
680
    return suite
681
681