blob: 496355e61d3435c4ff97e978646643ceab461252 [file] [log] [blame]
Thomas Hellere317d0e2006-03-09 07:21:33 +00001import unittest
Thomas Heller200af392006-03-08 20:38:11 +00002
Ezio Melotti520378f2013-03-01 10:55:17 +02003from test.support import import_module
R. David Murraya21e4ca2009-03-31 23:16:50 +00004
5# Skip tests if _ctypes module was not built.
6import_module('_ctypes')
7
Thomas Hellere317d0e2006-03-09 07:21:33 +00008import ctypes.test
9
Ezio Melotti520378f2013-03-01 10:55:17 +020010def load_tests(*args):
Thomas Hellere317d0e2006-03-09 07:21:33 +000011 skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0)
12 suites = [unittest.makeSuite(t) for t in testcases]
Ezio Melotti520378f2013-03-01 10:55:17 +020013 return unittest.TestSuite(suites)
Thomas Hellere317d0e2006-03-09 07:21:33 +000014
15if __name__ == "__main__":
Ezio Melotti520378f2013-03-01 10:55:17 +020016 unittest.main()