summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2009-05-02 11:43:06 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2009-05-02 11:43:06 (GMT)
commit829f6b80529bcf66bf52bb9b301bf718118b8316 (patch)
tree7850c9f8dda5c01911fb32083f97b05f529e36e5 /Doc/whatsnew
parent27f204dc297945378f72536e63936bf3bb995fdf (diff)
downloadcpython-829f6b80529bcf66bf52bb9b301bf718118b8316.zip
cpython-829f6b80529bcf66bf52bb9b301bf718118b8316.tar.gz
cpython-829f6b80529bcf66bf52bb9b301bf718118b8316.tar.bz2
Adds an exit parameter to unittest.main(). If False main no longer
calls sys.exit. Closes issue 3379. Michael Foord
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/2.7.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst
index 24d4549..92fedb7 100644
--- a/Doc/whatsnew/2.7.rst
+++ b/Doc/whatsnew/2.7.rst
@@ -477,6 +477,10 @@ changes, or look through the Subversion logs for all the details.
to provide additional information about why the two objects are
matching, much as the new sequence comparison methods do.
+ :func:`unittest.main` now takes an optional ``exit`` argument.
+ If False ``main`` doesn't call :func:`sys.exit` allowing it to
+ be used from the interactive interpreter. :issue:`3379`.
+
* The :func:`is_zipfile` function in the :mod:`zipfile` module will now
accept a file object, in addition to the path names accepted in earlier
versions. (Contributed by Gabriel Genellina; :issue:`4756`.)