~jameinel/bzr/2.1.0b4-win32-test-imports

Viewing all changes in revision 4874.

  • Committer: John Arbash Meinel
  • Date: 2009-12-08 19:19:51 UTC
  • Revision ID: john@arbash-meinel.com-20091208191951-ekhcv011dyalvnru
Add a helper _ModuleFeature.

It is *very* common for us to what to run a test or not based on
whether a module can be imported. So make it a common base class
rather than reimplementing it each time.

Also, when the module is available, you can get it from the
feature object, rather than doing your own import test.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: