/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Daniel Schierbeck
  • Date: 2007-11-20 12:21:07 UTC
  • Revision ID: daniel.schierbeck@gmail.com-20071120122107-vgape11qkdozckh5
Made the tag list appear sorted in the viz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
624
624
 
625
625
    takes_options = ['verbose',
626
626
                     Option('one', short_name='1',
627
 
                            help='Stop when one test fails.'),
628
 
                     Option('benchmark', help='Run the benchmarks.'),
 
627
                            help='stop when one test fails'),
 
628
                     Option('benchmark', help='run the benchmarks.'),
629
629
                     Option('lsprof-timed',
630
 
                     help='Generate lsprof output for benchmarked'
 
630
                     help='generate lsprof output for benchmarked'
631
631
                          ' sections of code.'),
632
632
                     Option('list-only',
633
 
                     help='List the tests instead of running them.'),
 
633
                     help='list the tests instead of running them'),
634
634
                     Option('randomize', type=str, argname="SEED",
635
 
                     help='Randomize the order of tests using the given'
636
 
                          ' seed or "now" for the current time.'),
 
635
                     help='randomize the order of tests using the given'
 
636
                          ' seed or "now" for the current time'),
637
637
                    ]
638
638
    takes_args = ['testspecs*']
639
639
 
699
699
    default_encoding = sys.getdefaultencoding()
700
700
    try:
701
701
        result = TestSuite()
702
 
        try:
703
 
            import_pygtk()
704
 
        except errors.BzrCommandError:
705
 
            return result
706
702
        result.addTest(tests.test_suite())
707
703
    finally:
708
704
        if sys.getdefaultencoding() != default_encoding: