diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-28 17:18:10 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-28 17:18:10 (GMT) |
commit | 9c39f3c4ec0cfc3655b95c3637c4222ecb173f33 (patch) | |
tree | b3ba0194360d3f57dd49784248493476ec921773 /Lib/test/test_ftplib.py | |
parent | 70eb79c669547509d82b3e2d8fac7fa1b6244f75 (diff) | |
download | cpython-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.py | 2 |
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: |