~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-25 03:07:37 UTC
  • mfrom: (4641.2.1 test-start-with)
  • Revision ID: pqm@pqm.ubuntu.com-20090825030737-d5xkv49mwu0e8zn6
(robertc) Fix minor test-support regression with -s aliases. (Robert
        Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3230
3230
            keep_only = None
3231
3231
        else:
3232
3232
            keep_only = load_test_id_list(load_list)
 
3233
        if starting_with:
 
3234
            starting_with = [test_prefix_alias_registry.resolve_alias(start)
 
3235
                             for start in starting_with]
3233
3236
        if test_suite_factory is None:
3234
3237
            # Reduce loading time by loading modules based on the starting_with
3235
3238
            # patterns.
3608
3611
    if keep_only is not None:
3609
3612
        id_filter = TestIdList(keep_only)
3610
3613
    if starting_with:
3611
 
        starting_with = [test_prefix_alias_registry.resolve_alias(start)
3612
 
                         for start in starting_with]
3613
3614
        # We take precedence over keep_only because *at loading time* using
3614
3615
        # both options means we will load less tests for the same final result.
3615
3616
        def interesting_module(name):