~bzr/ubuntu/natty/python-testtools/bzr-ppa

« back to all changes in this revision

Viewing changes to run-tests

  • Committer: Robert Collins
  • Date: 2009-11-22 03:48:30 UTC
  • mfrom: (16.11.1 upstream)
  • Revision ID: robertc@robertcollins.net-20091122034830-itaynkycem2mchy9
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
# See README for copyright and licensing details.
3
3
 
4
 
import unittest
 
4
import sys
5
5
 
6
6
from testtools.tests import test_suite
7
 
 
8
 
 
9
 
unittest.TextTestRunner().run(test_suite())
 
7
from testtools import TextTestResult
 
8
 
 
9
result = TextTestResult(sys.stdout)
 
10
result.startTestRun()
 
11
try:
 
12
    test_suite().run(result)
 
13
finally:
 
14
    result.stopTestRun()