Serhiy Storchaka
bedce3538c
[3.10] bpo-45229: Remove test_main in many tests (GH-28405) (GH-28455)
...
Instead of explicitly enumerate test classes for run_unittest()
use the unittest ability to discover tests. This also makes these
tests discoverable and runnable with unittest.
load_tests() can be used for dynamic generating tests and adding
doctests. setUpModule(), tearDownModule() and addModuleCleanup()
can be used for running code before and after all module tests.
(cherry picked from commit 40348acc18
)
2021-09-19 22:36:03 +03:00
Steve Dower
c1a9535989
bpo-43955: Handle the case where the distutils warning has already been triggered (GH-25675)
2021-04-28 16:21:55 +01:00
Victor Stinner
69ca32e0d3
bpo-41282: Fix distutils.utils.byte_compile() DeprecationWarning (GH-25406)
...
* byte_compile() of distutils.utils no longer logs a
DeprecationWarning
* test_distutils no longer logs a DeprecationWarning
2021-04-16 11:26:40 +02:00
Toshio Kuratomi
997443c14c
Fix so that test.test_distutils can be executed by unittest and not just regrtest (GH-13480)
2020-01-27 07:08:39 -05:00
Antoine Pitrou
1568732d73
Merged revisions 75860 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75860 | antoine.pitrou | 2009-10-27 21:20:41 +0100 (mar., 27 oct. 2009) | 3 lines
Try to fix transient refleaks in test_distutils.
........
2009-10-27 20:21:45 +00:00
Benjamin Peterson
ee8712cda4
#2621 rename test.test_support to test.support
2008-05-20 21:35:26 +00:00
Fred Drake
bb7c14461d
One unit test for distutils is not much, but is more than we had yesterday.
...
We need to write more; hopefully the barrier is a little lower now.
2004-06-15 15:49:46 +00:00