Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c90e19dd
Commit
c90e19dd
authored
May 01, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close #11958: Fix FTP tests for IPv6, bind to "::1" instead of "localhost".
Patch written by Charles-Francois Natali.
parent
afbc8506
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
Lib/test/test_ftplib.py
Lib/test/test_ftplib.py
+2
-7
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_ftplib.py
View file @
c90e19dd
...
...
@@ -648,7 +648,7 @@ class TestFTPClass(TestCase):
class
TestIPv6Environment
(
TestCase
):
def
setUp
(
self
):
self
.
server
=
DummyFTPServer
((
HOST
,
0
),
af
=
socket
.
AF_INET6
)
self
.
server
=
DummyFTPServer
((
'::1'
,
0
),
af
=
socket
.
AF_INET6
)
self
.
server
.
start
()
self
.
client
=
ftplib
.
FTP
()
self
.
client
.
connect
(
self
.
server
.
host
,
self
.
server
.
port
)
...
...
@@ -874,12 +874,7 @@ class TestTimeouts(TestCase):
def
test_main
():
tests
=
[
TestFTPClass
,
TestTimeouts
]
if
support
.
IPV6_ENABLED
:
try
:
DummyFTPServer
((
HOST
,
0
),
af
=
socket
.
AF_INET6
)
except
socket
.
error
:
pass
else
:
tests
.
append
(
TestIPv6Environment
)
tests
.
append
(
TestIPv6Environment
)
if
ssl
is
not
None
:
tests
.
extend
([
TestTLS_FTPClassMixin
,
TestTLS_FTPClass
])
...
...
Misc/NEWS
View file @
c90e19dd
...
...
@@ -534,6 +534,9 @@ Extensions
Tests
-----
- Issue #11958: Fix FTP tests for IPv6, bind to "::1" instead of "localhost".
Patch written by Charles-Francois Natali.
- Issue #8407, #11859: Fix tests of test_io using threads and an alarm: use
pthread_sigmask() to ensure that the SIGALRM signal is received by the main
thread.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment