summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-04-09 12:55:42 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-04-09 12:55:42 (GMT)
commit78fc25c77f5d0bd1b8236c855b9b846cb93632e3 (patch)
tree1e276e2a8a12db1684cf800b5be8a889f9dc54b3 /Misc/NEWS
parentb019ee752a6be0bcd4f640f09bce0c5f5215e880 (diff)
downloadcpython-78fc25c77f5d0bd1b8236c855b9b846cb93632e3.zip
cpython-78fc25c77f5d0bd1b8236c855b9b846cb93632e3.tar.gz
cpython-78fc25c77f5d0bd1b8236c855b9b846cb93632e3.tar.bz2
#14533: if a test has no test_main, use loadTestsFromModule.
This moves us further in the direction of using normal unittest facilities instead of specialized regrtest ones. Any test module that can be correctly run currently using 'python unittest -m test.test_xxx' can now be converted to use normal unittest test loading by simply deleting its test_main, thus no longer requiring manual maintenance of the list of tests to run. (Not all tests can be converted that easily, since test_main sometimes does some additional things (such as reap_children or reap_threads). In those cases the extra code may be moved to setUpModule/tearDownModule methods, or perhaps the same ends can be achieved in a different way, such as moving the decorators to the test classes that need them, etc.) I don't advocate going through and making this change wholesale, but any time a list of tests in test_main would otherwise need to be updated, consideration should instead be given to deleting test_main.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 4c3758d..3585764 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -51,6 +51,12 @@ Library
- Issue #14493: Use gvfs-open or xdg-open in webbrowser.
+Tests
+-----
+
+- Issue #14355: Regrtest now supports the standard unittest test loading, and
+ will use it if a test file contains no `test_main` method.
+
What's New in Python 3.3.0 Alpha 2?
===================================