~ubuntu-branches/ubuntu/maverick/python3.1/maverick

« back to all changes in this revision

Viewing changes to Lib/test/test_ctypes.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-03-23 00:01:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090323000127-5fstfxju4ufrhthq
Tags: upstream-3.1~a1+20090322
ImportĀ upstreamĀ versionĀ 3.1~a1+20090322

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import unittest
 
2
 
 
3
from test.support import run_unittest
 
4
import ctypes.test
 
5
 
 
6
def test_main():
 
7
    skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0)
 
8
    suites = [unittest.makeSuite(t) for t in testcases]
 
9
    run_unittest(unittest.TestSuite(suites))
 
10
 
 
11
if __name__ == "__main__":
 
12
    test_main()