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
bfedbc34
Commit
bfedbc34
authored
May 15, 2024
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] zc.recipe.egg: Fix testing framework
parent
9f45ce37
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/zc/buildout/tests/__init__.py
src/zc/buildout/tests/__init__.py
+6
-0
src/zc/buildout/tests/test_all.py
src/zc/buildout/tests/test_all.py
+1
-7
zc.recipe.egg_/src/zc/recipe/egg/README.rst
zc.recipe.egg_/src/zc/recipe/egg/README.rst
+2
-2
No files found.
src/zc/buildout/tests/__init__.py
View file @
bfedbc34
...
@@ -231,6 +231,12 @@ normalize_bang = (
...
@@ -231,6 +231,12 @@ normalize_bang = (
)
)
normalize_S
=
(
re
.
compile
(
r'#!/usr/local/bin/python2.7 -S'
),
'#!/usr/local/bin/python2.7'
,
)
def
create_egg
(
name
,
version
,
dest
,
install_requires
=
None
,
def
create_egg
(
name
,
version
,
dest
,
install_requires
=
None
,
dependency_links
=
None
):
dependency_links
=
None
):
d
=
tempfile
.
mkdtemp
()
d
=
tempfile
.
mkdtemp
()
...
...
src/zc/buildout/tests/test_all.py
View file @
bfedbc34
...
@@ -32,7 +32,7 @@ import zc.buildout.easy_install
...
@@ -32,7 +32,7 @@ import zc.buildout.easy_install
import
zc.buildout.testing
import
zc.buildout.testing
import
zipfile
import
zipfile
from
zc.buildout.tests
import
easy_install_SetUp
from
zc.buildout.tests
import
easy_install_SetUp
from
zc.buildout.tests
import
normalize_bang
from
zc.buildout.tests
import
normalize_bang
,
normalize_S
from
zc.buildout.tests
import
create_egg
from
zc.buildout.tests
import
create_egg
from
zc.buildout.tests
import
create_sample_eggs
from
zc.buildout.tests
import
create_sample_eggs
...
@@ -3405,12 +3405,6 @@ def bootstrapSetup(test):
...
@@ -3405,12 +3405,6 @@ def bootstrapSetup(test):
test
.
globs
[
'bootstrap_py'
]
=
bootstrap_py
test
.
globs
[
'bootstrap_py'
]
=
bootstrap_py
normalize_S
=
(
re
.
compile
(
r'#!/usr/local/bin/python2.7 -S'
),
'#!/usr/local/bin/python2.7'
,
)
def
test_suite
():
def
test_suite
():
test_suite
=
[
test_suite
=
[
...
...
zc.recipe.egg_/src/zc/recipe/egg/README.rst
View file @
bfedbc34
...
@@ -360,7 +360,7 @@ If a wrong script name is provided, buildout tells about it:
...
@@ -360,7 +360,7 @@ If a wrong script name is provided, buildout tells about it:
... scripts = undefined
... scripts = undefined
... """ % dict(server=link_server))
... """ % dict(server=link_server))
>>> print
system(buildout),
>>> print
_(system(buildout))
Uninstalling demo.
Uninstalling demo.
Installing demo.
Installing demo.
Could not generate script 'undefined' as it is not defined in the egg entry points.
Could not generate script 'undefined' as it is not defined in the egg entry points.
...
@@ -380,7 +380,7 @@ If a wrong script name is provided, buildout tells about it:
...
@@ -380,7 +380,7 @@ If a wrong script name is provided, buildout tells about it:
... scripts = foo=undefined
... scripts = foo=undefined
... """ % dict(server=link_server))
... """ % dict(server=link_server))
>>> print
system(buildout),
>>> print
_(system(buildout))
Uninstalling demo.
Uninstalling demo.
Installing demo.
Installing demo.
Could not generate script 'foo' as script 'undefined' is not defined in the egg entry points.
Could not generate script 'foo' as script 'undefined' is not defined in the egg entry points.
...
...
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