Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rubygemsrecipe
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
rubygemsrecipe
Commits
4152721c
Commit
4152721c
authored
Aug 18, 2015
by
sirex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing py34 tests
parent
1bebf4c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tests/test_rubygems.py
tests/test_rubygems.py
+4
-4
No files found.
tests/test_rubygems.py
View file @
4152721c
...
@@ -10,7 +10,7 @@ import subprocess
...
@@ -10,7 +10,7 @@ import subprocess
import
tempfile
import
tempfile
import
unittest
import
unittest
from
six
import
String
IO
from
six
import
Bytes
IO
import
zc.buildout
import
zc.buildout
...
@@ -59,8 +59,8 @@ class fixture(object):
...
@@ -59,8 +59,8 @@ class fixture(object):
(
'urlopen'
,
'rubygems.urllib.request.urlopen'
),
(
'urlopen'
,
'rubygems.urllib.request.urlopen'
),
(
'hexagonit'
,
'rubygems.hexagonit.recipe.download.Recipe'
),
(
'hexagonit'
,
'rubygems.hexagonit.recipe.download.Recipe'
),
))
))
self
.
patches
[
'urlopen'
].
return_value
=
String
IO
(
self
.
patches
[
'urlopen'
].
return_value
=
Bytes
IO
(
'https://rubygems.org/rubygems/rubygems-1.0.zip'
b
'https://rubygems.org/rubygems/rubygems-1.0.zip'
)
)
self
.
makedirs
((
self
.
makedirs
((
...
@@ -176,7 +176,7 @@ class RubyGemsTests(unittest.TestCase):
...
@@ -176,7 +176,7 @@ class RubyGemsTests(unittest.TestCase):
@
fixture
({
'recipe'
:
{
'gems'
:
'sass'
}})
@
fixture
({
'recipe'
:
{
'gems'
:
'sass'
}})
def
test_no_version
(
self
,
path
,
patches
,
buildout
,
name
,
options
):
def
test_no_version
(
self
,
path
,
patches
,
buildout
,
name
,
options
):
patches
[
'urlopen'
].
return_value
=
StringIO
(
''
)
patches
[
'urlopen'
].
return_value
=
BytesIO
(
b
''
)
recipe
=
rubygems
.
Recipe
(
buildout
,
name
,
options
)
recipe
=
rubygems
.
Recipe
(
buildout
,
name
,
options
)
self
.
assertRaises
(
zc
.
buildout
.
UserError
,
recipe
.
install
)
self
.
assertRaises
(
zc
.
buildout
.
UserError
,
recipe
.
install
)
...
...
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