Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.buildout
Commits
58346265
Commit
58346265
authored
May 15, 2020
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: some tests do not pass on Windows
Solution: fix them
parent
b34b9bfd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
20 deletions
+28
-20
src/zc/buildout/buildout.txt
src/zc/buildout/buildout.txt
+1
-1
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+4
-1
zc.recipe.egg_/src/zc/recipe/egg/api.rst
zc.recipe.egg_/src/zc/recipe/egg/api.rst
+1
-1
zc.recipe.egg_/src/zc/recipe/egg/tests.py
zc.recipe.egg_/src/zc/recipe/egg/tests.py
+22
-17
No files found.
src/zc/buildout/buildout.txt
View file @
58346265
...
...
@@ -390,7 +390,7 @@ we'll get a user error, not a traceback::
>>> print_(system(buildout), end='')
Develop: '/sample-buildout/recipes'
data-dir: Cannot create
/xxx/mydata.
/xxx is not a directory.
data-dir: Cannot create
.../xxx/mydata. ...
/xxx is not a directory.
While:
Installing.
Getting section data-dir.
...
...
src/zc/buildout/tests.py
View file @
58346265
...
...
@@ -145,7 +145,10 @@ class TestEasyInstall(unittest.TestCase):
self
.
assertIsNotNone
(
result
)
self
.
assertEqual
(
result
.
version
,
'3.3'
)
self
.
assertIn
(
dest
,
result
.
location
)
if
zc
.
buildout
.
WINDOWS
:
self
.
assertIn
(
dest
.
lower
(),
result
.
location
)
else
:
self
.
assertIn
(
dest
,
result
.
location
)
def
develop_w_non_setuptools_setup_scripts
():
...
...
zc.recipe.egg_/src/zc/recipe/egg/api.rst
View file @
58346265
...
...
@@ -147,5 +147,5 @@ recipe instance:
demo 0.2
other 1.0
demoneeded 1.1
extra paths: ['
/foo/bar', '
/spam/eggs']
extra paths: ['
.../foo/bar', '...
/spam/eggs']
zc.recipe.egg_/src/zc/recipe/egg/tests.py
View file @
58346265
...
...
@@ -20,6 +20,7 @@ import shutil
import
sys
import
zc.buildout.tests
import
zc.buildout.testing
from
zc.buildout
import
WINDOWS
import
unittest
...
...
@@ -37,7 +38,7 @@ def setUp(test):
zc
.
buildout
.
testing
.
install_develop
(
'zc.recipe.egg'
,
test
)
def
test_suite
():
suite
=
unittest
.
TestSuite
((
suite
s
=
[
doctest
.
DocFileSuite
(
'README.rst'
,
setUp
=
setUp
,
tearDown
=
zc
.
buildout
.
testing
.
buildoutTearDown
,
...
...
@@ -83,21 +84,6 @@ def test_suite():
'
index
=
http
:
//
localhost
:
8080
/
index
'),
])
),
doctest.DocFileSuite(
'
custom
.
rst
',
setUp=setUp, tearDown=zc.buildout.testing.buildoutTearDown,
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
checker=renormalizing.RENormalizing([
zc.buildout.testing.normalize_path,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.not_found,
zc.buildout.testing.python27_warning,
zc.buildout.testing.python27_warning_2,
(re.compile("(d ((ext)?demo(needed)?|other)"
r"-
\
d[.]
\
d-py)
\
d[.]
\
d(-
\
S+)?[.]egg
"
),
'
\\
1
V
.
V
.
egg
'),
]),
),
doctest.DocFileSuite(
'
working_set_caching
.
rst
',
setUp=setUp, tearDown=zc.buildout.testing.buildoutTearDown,
...
...
@@ -108,7 +94,26 @@ def test_suite():
zc.buildout.testing.not_found,
])
),
))
]
if not WINDOWS:
suites.append(
doctest.DocFileSuite(
'
custom
.
rst
',
setUp=setUp, tearDown=zc.buildout.testing.buildoutTearDown,
optionflags=doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS,
checker=renormalizing.RENormalizing([
zc.buildout.testing.normalize_path,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.not_found,
zc.buildout.testing.python27_warning,
zc.buildout.testing.python27_warning_2,
(re.compile("(d ((ext)?demo(needed)?|other)"
r"-
\
d[.]
\
d-py)
\
d[.]
\
d(-
\
S+)?[.]egg
"
),
'
\\
1
V
.
V
.
egg
'),
]),
)
)
suite = unittest.TestSuite(suites)
return suite
if __name__ == '
__main__
':
...
...
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