summary refs log tree commit diff stats
path: root/doc/pydoc/ranger.fsobject.loader.html
Commit message (Expand)AuthorAgeFilesLines
* rebuilt pydochut2010-03-311-1/+1
* updated pydochut2010-03-121-11/+12
* incremented version number and updated pydoc html files v1.0.3hut2010-02-161-7/+7
* updated pydoc documentationhut2010-01-131-1/+13
* moved pydoc pages to doc/pydochut2009-12-251-0/+122
previous revision' href='/akspecs/ranger/blame/all_tests.py?h=v1.4.0&id=4b66c3a834409458c0bf665b1f6065c1aab3ba8d'>^
22449efd ^
e9e4b4ff ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
                 



                                                                   





                                        
 



                                                                                       
 
                                                                  


                                                                        
#!/usr/bin/python
"""Run all the tests inside the test/ directory as a test suite."""
if __name__ == '__main__':
	import unittest
	from test import *
	from sys import exit, argv

	try:
		verbosity = int(argv[1])
	except IndexError:
		verbosity = 2

	tests = []
	for key, val in vars().copy().items():
		if key.startswith('tc_'):
			tests.extend(v for k,v in vars(val).items() if type(v) == type)

	suite = unittest.TestSuite(map(unittest.makeSuite, tests))
	result = unittest.TextTestRunner(verbosity=verbosity).run(suite)
	if len(result.errors) + len(result.failures) > 0:
		exit(1)