Mercurial > hgsubversion
comparison tests/run.py @ 393:e857e5cfc10f
tests: send warning to stderr instead of redirected stdout
| author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
|---|---|
| date | Thu, 11 Jun 2009 11:39:45 +0200 |
| parents | d19843ac13c9 |
| children | d70c8e45cb9e |
comparison
equal
deleted
inserted
replaced
| 392:35993ba9d119 | 393:e857e5cfc10f |
|---|---|
| 46 suite = [i[1].suite() for i in sorted(all.iteritems())] | 46 suite = [i[1].suite() for i in sorted(all.iteritems())] |
| 47 else: | 47 else: |
| 48 suite = [] | 48 suite = [] |
| 49 for arg in args: | 49 for arg in args: |
| 50 if arg not in all: | 50 if arg not in all: |
| 51 print 'test module %s not available' % arg | 51 print >> sys.stderr, 'test module %s not available' % arg |
| 52 else: | 52 else: |
| 53 suite.append(all[arg].suite()) | 53 suite.append(all[arg].suite()) |
| 54 | 54 |
| 55 runner = unittest.TextTestRunner(**kwargs) | 55 runner = unittest.TextTestRunner(**kwargs) |
| 56 runner.run(unittest.TestSuite(suite)) | 56 runner.run(unittest.TestSuite(suite)) |
