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
1e8e02f2
Commit
1e8e02f2
authored
Jul 15, 2010
by
Gary Poster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide additional messages from distribute in tests so tests pass with it.
parent
77a3db7d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
205 additions
and
190 deletions
+205
-190
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+136
-127
z3c.recipe.scripts_/src/z3c/recipe/scripts/tests.py
z3c.recipe.scripts_/src/z3c/recipe/scripts/tests.py
+20
-18
zc.recipe.egg_/src/zc/recipe/egg/tests.py
zc.recipe.egg_/src/zc/recipe/egg/tests.py
+49
-45
No files found.
src/zc/buildout/tests.py
View file @
1e8e02f2
...
@@ -3717,6 +3717,8 @@ normalize_bang = (
...
@@ -3717,6 +3717,8 @@ normalize_bang = (
'#!/usr/local/bin/python2.4'
,
'#!/usr/local/bin/python2.4'
,
)
)
hide_distribute_additions
=
(
re
.
compile
(
'install_dir .+
\
n
'
),
''
)
def
test_suite
():
def
test_suite
():
test_suite
=
[
test_suite
=
[
doctest
.
DocFileSuite
(
doctest
.
DocFileSuite
(
...
@@ -3728,6 +3730,7 @@ def test_suite():
...
@@ -3728,6 +3730,7 @@ def test_suite():
zc
.
buildout
.
testing
.
normalize_endings
,
zc
.
buildout
.
testing
.
normalize_endings
,
zc
.
buildout
.
testing
.
normalize_script
,
zc
.
buildout
.
testing
.
normalize_script
,
zc
.
buildout
.
testing
.
normalize_egg_py
,
zc
.
buildout
.
testing
.
normalize_egg_py
,
zc
.
buildout
.
tests
.
hide_distribute_additions
,
(
re
.
compile
(
'__buildout_signature__ = recipes-
\
S+
'
),
(
re
.
compile
(
'__buildout_signature__ = recipes-
\
S+
'
),
'
__buildout_signature__
=
recipes
-
SSSSSSSSSSS
'),
'
__buildout_signature__
=
recipes
-
SSSSSSSSSSS
'),
(re.compile('
executable
=
[
\
S
]
+
python
\
S
*
', re.I),
(re.compile('
executable
=
[
\
S
]
+
python
\
S
*
', re.I),
...
@@ -3758,6 +3761,7 @@ def test_suite():
...
@@ -3758,6 +3761,7 @@ def test_suite():
checker=renormalizing.RENormalizing([
checker=renormalizing.RENormalizing([
zc.buildout.testing.normalize_path,
zc.buildout.testing.normalize_path,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_endings,
zc.buildout.tests.hide_distribute_additions,
(re.compile(r'
\
S
+
buildout
.
py
'), '
buildout
.
py
'),
(re.compile(r'
\
S
+
buildout
.
py
'), '
buildout
.
py
'),
(re.compile(r'
line
\
d
+
'), '
line
NNN
'),
(re.compile(r'
line
\
d
+
'), '
line
NNN
'),
(re.compile(r'
py
\
(
\
d
+
\
)
'), '
py
(
NNN
)
'),
(re.compile(r'
py
\
(
\
d
+
\
)
'), '
py
(
NNN
)
'),
...
@@ -3774,6 +3778,7 @@ def test_suite():
...
@@ -3774,6 +3778,7 @@ def test_suite():
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_egg_py,
zc.buildout.testing.normalize_egg_py,
normalize_bang,
normalize_bang,
zc.buildout.tests.hide_distribute_additions,
(re.compile('
99
[.]
99
'), '
NINETYNINE
.
NINETYNINE
'),
(re.compile('
99
[.]
99
'), '
NINETYNINE
.
NINETYNINE
'),
(re.compile('
(
zc
.
buildout
|
setuptools
)
-
\
d
+
[.]
\
d
+
\
S
*
'
(re.compile('
(
zc
.
buildout
|
setuptools
)
-
\
d
+
[.]
\
d
+
\
S
*
'
'
-
py
\
d
.
\
d
.
egg
'),
'
-
py
\
d
.
\
d
.
egg
'),
...
@@ -3804,6 +3809,7 @@ def test_suite():
...
@@ -3804,6 +3809,7 @@ def test_suite():
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_egg_py,
zc.buildout.testing.normalize_egg_py,
normalize_bang,
normalize_bang,
zc.buildout.tests.hide_distribute_additions,
(re.compile('
extdemo
[.]
pyd
'), '
extdemo
.
so
'),
(re.compile('
extdemo
[.]
pyd
'), '
extdemo
.
so
'),
(re.compile('
[
-
d
]
(
setuptools
|
distribute
)
-
\
S
+
[.]
egg
'),
(re.compile('
[
-
d
]
(
setuptools
|
distribute
)
-
\
S
+
[.]
egg
'),
'
setuptools
.
egg
'),
'
setuptools
.
egg
'),
...
@@ -3845,6 +3851,7 @@ def test_suite():
...
@@ -3845,6 +3851,7 @@ def test_suite():
zc
.
buildout
.
testing
.
normalize_endings
,
zc
.
buildout
.
testing
.
normalize_endings
,
zc
.
buildout
.
testing
.
normalize_script
,
zc
.
buildout
.
testing
.
normalize_script
,
zc
.
buildout
.
testing
.
normalize_egg_py
,
zc
.
buildout
.
testing
.
normalize_egg_py
,
zc
.
buildout
.
tests
.
hide_distribute_additions
,
(
re
.
compile
(
"buildout: Running
\
S*se
t
up.py"
),
(
re
.
compile
(
"buildout: Running
\
S*se
t
up.py"
),
'buildout: Running setup.py'
),
'buildout: Running setup.py'
),
(
re
.
compile
(
'(setuptools|distribute)-
\
S+-
'
),
(
re
.
compile
(
'(setuptools|distribute)-
\
S+-
'
),
...
@@ -3882,6 +3889,7 @@ def test_suite():
...
@@ -3882,6 +3889,7 @@ def test_suite():
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_egg_py,
zc.buildout.testing.normalize_egg_py,
zc.buildout.tests.hide_distribute_additions,
(re.compile('__buildout_signature__ = recipes-
\
S+
'
),
(re.compile('__buildout_signature__ = recipes-
\
S+
'
),
'__buildout_signature__ = recipes-SSSSSSSSSSS'),
'__buildout_signature__ = recipes-SSSSSSSSSSS'),
(re.compile('[-d] setuptools-
\
S+[.]egg
'
), 'setuptools.egg'),
(re.compile('[-d] setuptools-
\
S+[.]egg
'
), 'setuptools.egg'),
...
@@ -3941,6 +3949,7 @@ def test_suite():
...
@@ -3941,6 +3949,7 @@ def test_suite():
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_egg_py,
zc.buildout.testing.normalize_egg_py,
zc.buildout.tests.hide_distribute_additions,
(re.compile('(setuptools|distribute)-
\
S+-
'
),
(re.compile('(setuptools|distribute)-
\
S+-
'
),
'setuptools.egg'),
'setuptools.egg'),
(re.compile('zc.buildout-
\
S+-
'
),
(re.compile('zc.buildout-
\
S+-
'
),
...
...
z3c.recipe.scripts_/src/z3c/recipe/scripts/tests.py
View file @
1e8e02f2
...
@@ -421,6 +421,7 @@ def test_suite():
...
@@ -421,6 +421,7 @@ def test_suite():
zc
.
buildout
.
testing
.
normalize_script
,
zc
.
buildout
.
testing
.
normalize_script
,
zc
.
buildout
.
testing
.
normalize_egg_py
,
zc
.
buildout
.
testing
.
normalize_egg_py
,
zc
.
buildout
.
tests
.
normalize_bang
,
zc
.
buildout
.
tests
.
normalize_bang
,
zc
.
buildout
.
tests
.
hide_distribute_additions
,
(
re
.
compile
(
r'zc.buildout(-\
S+)?[.]egg(-li
nk)?'
),
(
re
.
compile
(
r'zc.buildout(-\
S+)?[.]egg(-li
nk)?'
),
'zc.buildout.egg'
),
'zc.buildout.egg'
),
(
re
.
compile
(
'[-d] (setuptools|distribute)-[^-]+-'
),
'setuptools-X-'
),
(
re
.
compile
(
'[-d] (setuptools|distribute)-[^-]+-'
),
'setuptools-X-'
),
...
@@ -442,6 +443,7 @@ def test_suite():
...
@@ -442,6 +443,7 @@ def test_suite():
zc
.
buildout
.
testing
.
normalize_path
,
zc
.
buildout
.
testing
.
normalize_path
,
zc
.
buildout
.
testing
.
normalize_endings
,
zc
.
buildout
.
testing
.
normalize_endings
,
zc
.
buildout
.
testing
.
normalize_egg_py
,
zc
.
buildout
.
testing
.
normalize_egg_py
,
zc
.
buildout
.
tests
.
hide_distribute_additions
,
(
re
.
compile
(
r'[a-zA-Z]:\\\\foo\\\\bar'
),
'/foo/bar'
),
(
re
.
compile
(
r'[a-zA-Z]:\\\\foo\\\\bar'
),
'/foo/bar'
),
]),
]),
),
),
...
...
zc.recipe.egg_/src/zc/recipe/egg/tests.py
View file @
1e8e02f2
...
@@ -48,6 +48,7 @@ def test_suite():
...
@@ -48,6 +48,7 @@ def test_suite():
zc
.
buildout
.
testing
.
normalize_script
,
zc
.
buildout
.
testing
.
normalize_script
,
zc
.
buildout
.
testing
.
normalize_egg_py
,
zc
.
buildout
.
testing
.
normalize_egg_py
,
zc
.
buildout
.
tests
.
normalize_bang
,
zc
.
buildout
.
tests
.
normalize_bang
,
zc
.
buildout
.
tests
.
hide_distribute_additions
,
(
re
.
compile
(
'zc.buildout(-
\
S+)?[.]egg(-li
n
k)?'
),
(
re
.
compile
(
'zc.buildout(-
\
S+)?[.]egg(-li
n
k)?'
),
'zc.buildout.egg'
),
'zc.buildout.egg'
),
(
re
.
compile
(
'[-d] (setuptools|distribute)-[^-]+-'
),
(
re
.
compile
(
'[-d] (setuptools|distribute)-[^-]+-'
),
...
@@ -64,6 +65,7 @@ def test_suite():
...
@@ -64,6 +65,7 @@ def test_suite():
checker
=
renormalizing
.
RENormalizing
([
checker
=
renormalizing
.
RENormalizing
([
zc
.
buildout
.
testing
.
normalize_path
,
zc
.
buildout
.
testing
.
normalize_path
,
zc
.
buildout
.
testing
.
normalize_endings
,
zc
.
buildout
.
testing
.
normalize_endings
,
zc
.
buildout
.
tests
.
hide_distribute_additions
,
(
re
.
compile
(
'__buildout_signature__ = '
(
re
.
compile
(
'__buildout_signature__ = '
'sample-
\
S+
\
s+'
'sample-
\
S+
\
s+'
'zc.recipe.egg-
\
S+
\
s+'
'zc.recipe.egg-
\
S+
\
s+'
...
@@ -85,6 +87,7 @@ def test_suite():
...
@@ -85,6 +87,7 @@ def test_suite():
checker=renormalizing.RENormalizing([
checker=renormalizing.RENormalizing([
zc.buildout.testing.normalize_path,
zc.buildout.testing.normalize_path,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_endings,
zc.buildout.tests.hide_distribute_additions,
(re.compile("(d ((ext)?demo(needed)?|other)"
(re.compile("(d ((ext)?demo(needed)?|other)"
"-
\
d[.]
\
d-py)
\
d[.]
\
d(-
\
S+)?[.]egg
"
),
"-
\
d[.]
\
d-py)
\
d[.]
\
d(-
\
S+)?[.]egg
"
),
'
\\
1
V
.
V
.
egg
'),
'
\\
1
V
.
V
.
egg
'),
...
@@ -107,6 +110,7 @@ def test_suite():
...
@@ -107,6 +110,7 @@ def test_suite():
zc.buildout.testing.normalize_path,
zc.buildout.testing.normalize_path,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_endings,
zc.buildout.testing.normalize_script,
zc.buildout.testing.normalize_script,
zc.buildout.tests.hide_distribute_additions,
(re.compile('
Got
(
setuptools
|
distribute
)
\
S
+
'),
(re.compile('
Got
(
setuptools
|
distribute
)
\
S
+
'),
'
Got
setuptools
V
'),
'
Got
setuptools
V
'),
(re.compile('
([
d
-
]
)
?
(
setuptools
|
distribute
)
-
\
S
+-
py
'),
(re.compile('
([
d
-
]
)
?
(
setuptools
|
distribute
)
-
\
S
+-
py
'),
...
...
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