summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ftplib.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-04-28 17:18:10 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-04-28 17:18:10 (GMT)
commit9c39f3c4ec0cfc3655b95c3637c4222ecb173f33 (patch)
treeb3ba0194360d3f57dd49784248493476ec921773 /Lib/test/test_ftplib.py
parent70eb79c669547509d82b3e2d8fac7fa1b6244f75 (diff)
downloadcpython-9c39f3c4ec0cfc3655b95c3637c4222ecb173f33.zip
cpython-9c39f3c4ec0cfc3655b95c3637c4222ecb173f33.tar.gz
cpython-9c39f3c4ec0cfc3655b95c3637c4222ecb173f33.tar.bz2
Issue #11811: Factor out detection of IPv6 support on the current host
and make it available as `test.support.IPV6_ENABLED`. Patch by Charles-François Natali.
Diffstat (limited to 'Lib/test/test_ftplib.py')
-rw-r--r--Lib/test/test_ftplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py
index 9edb197..cfdfa2c 100644
--- a/Lib/test/test_ftplib.py
+++ b/Lib/test/test_ftplib.py
@@ -873,7 +873,7 @@ class TestTimeouts(TestCase):
def test_main():
tests = [TestFTPClass, TestTimeouts]
- if socket.has_ipv6:
+ if support.IPV6_ENABLED:
try:
DummyFTPServer((HOST, 0), af=socket.AF_INET6)
except socket.error: