Mercurial > cpython-lru_cache-weakref
annotate Lib/test/test_ctypes.py @ 58925:eecf1bef052d 2.6
Merged revisions 78207 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78207 | ezio.melotti | 2010-02-17 01:26:09 +0200 (Wed, 17 Feb 2010) | 1 line
#7930: fix stripid
........
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Tue, 16 Feb 2010 23:29:44 +0000 |
| parents | 06145fbc7ab9 |
| children | 51102abdec50 f4c5e3a64be2 9c930a32cebb |
| rev | line source |
|---|---|
|
36911
b4e89d29bea8
Replace the trivial ctypes test (did only an import) with the real test suite.
Thomas Heller <theller@ctypes.org>
parents:
36900
diff
changeset
|
1 import unittest |
|
b4e89d29bea8
Replace the trivial ctypes test (did only an import) with the real test suite.
Thomas Heller <theller@ctypes.org>
parents:
36900
diff
changeset
|
2 |
|
41554
06145fbc7ab9
Merged revisions 53952-54987 via svnmerge from
Guido van Rossum <guido@python.org>
parents:
36911
diff
changeset
|
3 from test.test_support import run_unittest |
|
36911
b4e89d29bea8
Replace the trivial ctypes test (did only an import) with the real test suite.
Thomas Heller <theller@ctypes.org>
parents:
36900
diff
changeset
|
4 import ctypes.test |
|
36900
9227ae3db7ed
Trivial test for ctypes, more to come
Thomas Heller <theller@ctypes.org>
parents:
diff
changeset
|
5 |
|
36911
b4e89d29bea8
Replace the trivial ctypes test (did only an import) with the real test suite.
Thomas Heller <theller@ctypes.org>
parents:
36900
diff
changeset
|
6 def test_main(): |
|
b4e89d29bea8
Replace the trivial ctypes test (did only an import) with the real test suite.
Thomas Heller <theller@ctypes.org>
parents:
36900
diff
changeset
|
7 skipped, testcases = ctypes.test.get_tests(ctypes.test, "test_*.py", verbosity=0) |
|
b4e89d29bea8
Replace the trivial ctypes test (did only an import) with the real test suite.
Thomas Heller <theller@ctypes.org>
parents:
36900
diff
changeset
|
8 suites = [unittest.makeSuite(t) for t in testcases] |
|
41554
06145fbc7ab9
Merged revisions 53952-54987 via svnmerge from
Guido van Rossum <guido@python.org>
parents:
36911
diff
changeset
|
9 run_unittest(unittest.TestSuite(suites)) |
|
36911
b4e89d29bea8
Replace the trivial ctypes test (did only an import) with the real test suite.
Thomas Heller <theller@ctypes.org>
parents:
36900
diff
changeset
|
10 |
|
b4e89d29bea8
Replace the trivial ctypes test (did only an import) with the real test suite.
Thomas Heller <theller@ctypes.org>
parents:
36900
diff
changeset
|
11 if __name__ == "__main__": |
|
b4e89d29bea8
Replace the trivial ctypes test (did only an import) with the real test suite.
Thomas Heller <theller@ctypes.org>
parents:
36900
diff
changeset
|
12 test_main() |
