Mercurial > cpython-lru_cache-weakref
annotate Lib/test/test_distutils.py @ 80661:94de77bd0b4b 2.7
Issue #16194: document imp.load_dynamic problems
when read several extension modules from the same binary object file.
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Thu, 29 Nov 2012 19:51:28 +0200 |
| parents | b36cb4602e21 |
| children |
| rev | line source |
|---|---|
|
32353
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
1 """Tests for distutils. |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
2 |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
3 The tests for distutils are defined in the distutils.tests package; |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
4 the test_suite() function there returns a test suite that's ready to |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
5 be run. |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
6 """ |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
7 |
|
63663
cdf6a3a50407
Merged revisions 79191 via svnmerge from
Ezio Melotti <ezio.melotti@gmail.com>
parents:
63534
diff
changeset
|
8 from test import test_support |
|
32353
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
9 import distutils.tests |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
10 |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
11 |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
12 def test_main(): |
|
63663
cdf6a3a50407
Merged revisions 79191 via svnmerge from
Ezio Melotti <ezio.melotti@gmail.com>
parents:
63534
diff
changeset
|
13 test_support.run_unittest(distutils.tests.test_suite()) |
|
cdf6a3a50407
Merged revisions 79191 via svnmerge from
Ezio Melotti <ezio.melotti@gmail.com>
parents:
63534
diff
changeset
|
14 test_support.reap_children() |
|
32353
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
15 |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
16 |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
17 if __name__ == "__main__": |
|
40acb68ad224
One unit test for distutils is not much, but is more than we had yesterday.
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
18 test_main() |
