Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
package_control_channel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
package_control_channel
Commits
7a926e05
Commit
7a926e05
authored
Feb 14, 2015
by
FichteFoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix --test-repositories tests when download fails
parent
285bab38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
test.py
tests/test.py
+2
-4
No files found.
tests/test.py
View file @
7a926e05
...
...
@@ -471,14 +471,12 @@ class TestContainer(object):
if
re
.
match
(
'https?://'
,
path
,
re
.
I
)
is
not
None
:
# Download the repository
try
:
f
=
urlopen
(
path
)
source
=
f
.
read
()
.
decode
(
"utf-8"
,
'replace'
)
with
urlopen
(
path
)
as
f
:
source
=
f
.
read
()
.
decode
(
"utf-8"
,
'replace'
)
except
Exception
as
e
:
cls
.
_write
(
stream
,
'failed (
%
s)
\n
'
%
str_cls
(
e
))
yield
cls
.
_fail
(
"Downloading
%
s failed"
%
path
,
e
)
return
finally
:
f
.
close
()
else
:
try
:
with
_open
(
path
)
as
f
:
...
...
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