Mercurial > cpython-lru_cache-weakref
annotate Lib/test/test_ctypes.py @ 54294:dba767bc3155 legacy-trunk
remove mention of old ctypes version
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 23 May 2009 20:59:09 +0000 |
| parents | f4c5e3a64be2 |
| children | 7caf54ce529e |
| 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 |
|
52491
f4c5e3a64be2
Change more tests to use import_module for the modules that
R. David Murray <rdmurray@bitdance.com>
parents:
41554
diff
changeset
|
3 from test.test_support import run_unittest, import_module |
|
f4c5e3a64be2
Change more tests to use import_module for the modules that
R. David Murray <rdmurray@bitdance.com>
parents:
41554
diff
changeset
|
4 #Skip tests if _ctypes module does not exist |
|
f4c5e3a64be2
Change more tests to use import_module for the modules that
R. David Murray <rdmurray@bitdance.com>
parents:
41554
diff
changeset
|
5 import_module('_ctypes') |
|
f4c5e3a64be2
Change more tests to use import_module for the modules that
R. David Murray <rdmurray@bitdance.com>
parents:
41554
diff
changeset
|
6 |
|
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
|
7 import ctypes.test |
|
36900
9227ae3db7ed
Trivial test for ctypes, more to come
Thomas Heller <theller@ctypes.org>
parents:
diff
changeset
|
8 |
|
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
|
9 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
|
10 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
|
11 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
|
12 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
|
13 |
|
b4e89d29bea8
Replace the trivial ctypes test (did only an import) with the real test suite.
Thomas Heller <theller@ctypes.org>
parents:
36900
diff
changeset
|
14 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
|
15 test_main() |
