/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/TestUtil.py

  • Committer: Andrew Bennetts
  • Date: 2008-04-02 00:14:00 UTC
  • mfrom: (3324 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080402001400-r1pqse38i03dl97w
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        """
90
90
        result = self.suiteClass()
91
91
        for name in names:
92
 
            module = _load_module_by_name(name)
93
 
            result.addTests(self.loadTestsFromModule(module))
 
92
            result.addTests(self.loadTestsFromModuleName(name))
 
93
        return result
 
94
 
 
95
    def loadTestsFromModuleName(self, name):
 
96
        result = self.suiteClass()
 
97
        module = _load_module_by_name(name)
 
98
 
 
99
        result.addTests(self.loadTestsFromModule(module))
94
100
        return result
95
101
 
96
102
    def loadTestsFromModule(self, module):
127
133
    def getTestCaseNames(self, test_case_class):
128
134
        test_fn_names = self.test_func_names.get(test_case_class, None)
129
135
        if test_fn_names is not None:
130
 
            # We already calculate that
 
136
            # We already know them
131
137
            return test_fn_names
132
138
 
133
139
        test_fn_names = unittest.TestLoader.getTestCaseNames(self,