Update doc to use contextlib2.nullcontext
nullcontext has been backported in contextlib2==0.6.0
This commit is contained in:
parent
5e7b8d813b
commit
18786992bb
|
@ -678,4 +678,4 @@ Or, if desired, you can ``pip install contextlib2`` and use:
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
from contextlib2 import ExitStack as does_not_raise
|
||||
from contextlib2 import nullcontext as does_not_raise
|
||||
|
|
Loading…
Reference in New Issue