/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/__init__.py

  • Committer: Robert Collins
  • Date: 2009-08-24 05:23:11 UTC
  • mto: This revision was merged to the branch mainline in revision 4640.
  • Revision ID: robertc@robertcollins.net-20090824052311-ad4btmhdl12fb0zy
Move selftest internals tests out of blackbox test space - they are not testing our selftest command line.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3231
3231
        else:
3232
3232
            keep_only = load_test_id_list(load_list)
3233
3233
        if test_suite_factory is None:
 
3234
            # Reduce loading time by loading modules based on the starting_with
 
3235
            # patterns.
3234
3236
            suite = test_suite(keep_only, starting_with)
3235
3237
        else:
3236
3238
            suite = test_suite_factory()
 
3239
        if starting_with:
 
3240
            # But always filter as requested.
 
3241
            suite = filter_suite_by_id_startswith(suite, starting_with)
3237
3242
        return run_suite(suite, 'testbzr', verbose=verbose, pattern=pattern,
3238
3243
                     stop_on_failure=stop_on_failure,
3239
3244
                     transport=transport,
3685
3690
            reload(sys)
3686
3691
            sys.setdefaultencoding(default_encoding)
3687
3692
 
3688
 
    if starting_with:
3689
 
        suite = filter_suite_by_id_startswith(suite, starting_with)
3690
 
 
3691
3693
    if keep_only is not None:
3692
3694
        # Now that the referred modules have loaded their tests, keep only the
3693
3695
        # requested ones.