2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00
Files
python/pyste/tests/runtests.py
Bruno da Silva de Oliveira 85f324efb6 - Unit tests for the examples
[SVN r17992]
2003-03-19 03:08:53 +00:00

16 lines
454 B
Python

import sys
sys.path.append('../src')
import unittest
import os.path
from glob import glob
if __name__ == '__main__':
loader = unittest.defaultTestLoader
tests = []
for name in glob('*UT.py'):
module = __import__(os.path.splitext(name)[0])
tests.append(loader.loadTestsFromModule(module))
runner = unittest.TextTestRunner()
result = runner.run(unittest.TestSuite(tests))
sys.exit(not result.wasSuccessful())