source: pyyaml/trunk/tests/test_all.py @ 291

Revision 291, 301 bytes checked in by xi, 6 years ago (diff)

Added the script tests/test_all.py.

Line 
1
2import unittest
3
4def main():
5    import yaml
6    names = ['test_yaml']
7    if yaml.__libyaml__:
8        names.append('test_yaml_ext')
9    suite = unittest.defaultTestLoader.loadTestsFromNames(names)
10    runner = unittest.TextTestRunner()
11    runner.run(suite)
12
13if __name__ == '__main__':
14    main()
15
Note: See TracBrowser for help on using the repository browser.