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
d81bea65
Commit
d81bea65
authored
Jul 18, 2017
by
Ammar Askar
Committed by
Berker Peksag
Jul 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pythontest.net instead of debian.org in test_urllib2net (GH-2755)
parent
f776eb0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_urllib2net.py
Lib/test/test_urllib2net.py
+3
-3
No files found.
Lib/test/test_urllib2net.py
View file @
d81bea65
...
@@ -97,8 +97,8 @@ class OtherNetworkTests(unittest.TestCase):
...
@@ -97,8 +97,8 @@ class OtherNetworkTests(unittest.TestCase):
def
test_ftp
(
self
):
def
test_ftp
(
self
):
urls
=
[
urls
=
[
'ftp://
ftp.debian.org/debian
/README'
,
'ftp://
www.pythontest.net
/README'
,
(
'ftp://
ftp.debian.org/debian
/non-existent-file'
,
(
'ftp://
www.pythontest.net
/non-existent-file'
,
None
,
urllib
.
error
.
URLError
),
None
,
urllib
.
error
.
URLError
),
]
]
self
.
_test_urls
(
urls
,
self
.
_extra_handlers
())
self
.
_test_urls
(
urls
,
self
.
_extra_handlers
())
...
@@ -287,7 +287,7 @@ class TimeoutTest(unittest.TestCase):
...
@@ -287,7 +287,7 @@ class TimeoutTest(unittest.TestCase):
self
.
addCleanup
(
u
.
close
)
self
.
addCleanup
(
u
.
close
)
self
.
assertEqual
(
u
.
fp
.
raw
.
_sock
.
gettimeout
(),
120
)
self
.
assertEqual
(
u
.
fp
.
raw
.
_sock
.
gettimeout
(),
120
)
FTP_HOST
=
'ftp://
ftp.debian.org/debian
/'
FTP_HOST
=
'ftp://
www.pythontest.net
/'
def
test_ftp_basic
(
self
):
def
test_ftp_basic
(
self
):
self
.
assertIsNone
(
socket
.
getdefaulttimeout
())
self
.
assertIsNone
(
socket
.
getdefaulttimeout
())
...
...
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