diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2016-08-09 21:47:04 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2016-08-09 21:47:04 (GMT) |
commit | 378a1d77d9f257a914a35dbbfdf16bd8a8f3ef36 (patch) | |
tree | 21a0a5f52763d83788779c5f1b55228e020e980c /Doc/howto/ipaddress.rst | |
parent | 2f47fb00211ab99924ea5ae2d576bc3c6ba8952f (diff) | |
download | cpython-378a1d77d9f257a914a35dbbfdf16bd8a8f3ef36.zip cpython-378a1d77d9f257a914a35dbbfdf16bd8a8f3ef36.tar.gz cpython-378a1d77d9f257a914a35dbbfdf16bd8a8f3ef36.tar.bz2 |
Issue #27204: Fix doctests in Doc/howto
Patch by Jelle Zijlstra.
Diffstat (limited to 'Doc/howto/ipaddress.rst')
-rw-r--r-- | Doc/howto/ipaddress.rst | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/howto/ipaddress.rst b/Doc/howto/ipaddress.rst index 5e0ff3e..452e367 100644 --- a/Doc/howto/ipaddress.rst +++ b/Doc/howto/ipaddress.rst @@ -1,3 +1,7 @@ +.. testsetup:: + + import ipaddress + .. _ipaddress-howto: *************************************** @@ -49,11 +53,6 @@ to use the :func:`ipaddress.ip_address` factory function, which automatically determines whether to create an IPv4 or IPv6 address based on the passed in value: -.. testsetup:: - >>> import ipaddress - -:: - >>> ipaddress.ip_address('192.0.2.1') IPv4Address('192.0.2.1') >>> ipaddress.ip_address('2001:DB8::1') |