mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
What's New in Python 3.3: mention unittest.mock
This commit is contained in:
parent
6d10b4d591
commit
1da769a302
1 changed files with 2 additions and 1 deletions
|
|
@ -69,6 +69,7 @@ New library modules:
|
||||||
* :mod:`faulthandler` (helps debugging low-level crashes)
|
* :mod:`faulthandler` (helps debugging low-level crashes)
|
||||||
* :mod:`ipaddress` (high-level objects representing IP addresses and masks)
|
* :mod:`ipaddress` (high-level objects representing IP addresses and masks)
|
||||||
* :mod:`lzma` (compress data using the XZ / LZMA algorithm)
|
* :mod:`lzma` (compress data using the XZ / LZMA algorithm)
|
||||||
|
* :mod:`unittest.mock` (replace parts of your system under test with mock objects)
|
||||||
* :mod:`venv` (Python :ref:`virtual environments <pep-405>`, as in the
|
* :mod:`venv` (Python :ref:`virtual environments <pep-405>`, as in the
|
||||||
popular ``virtualenv`` package)
|
popular ``virtualenv`` package)
|
||||||
|
|
||||||
|
|
@ -923,7 +924,7 @@ New Modules
|
||||||
faulthandler
|
faulthandler
|
||||||
------------
|
------------
|
||||||
|
|
||||||
This new debug module contains functions to dump Python tracebacks explicitly,
|
This new debug module :mod:`faulthandler` contains functions to dump Python tracebacks explicitly,
|
||||||
on a fault (a crash like a segmentation fault), after a timeout, or on a user
|
on a fault (a crash like a segmentation fault), after a timeout, or on a user
|
||||||
signal. Call :func:`faulthandler.enable` to install fault handlers for the
|
signal. Call :func:`faulthandler.enable` to install fault handlers for the
|
||||||
:const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS`, and
|
:const:`SIGSEGV`, :const:`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS`, and
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue