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
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
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
Hide 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 = (
)
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
,
dependency_links
=
None
):
d
=
tempfile
.
mkdtemp
()
...
...
src/zc/buildout/tests/test_all.py
View file @
bfedbc34
...
...
@@ -32,7 +32,7 @@ import zc.buildout.easy_install
import
zc.buildout.testing
import
zipfile
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_sample_eggs
...
...
@@ -3405,12 +3405,6 @@ def bootstrapSetup(test):
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
():
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:
... scripts = undefined
... """ % dict(server=link_server))
>>> print
system(buildout),
>>> print
_(system(buildout))
Uninstalling demo.
Installing demo.
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:
... scripts = foo=undefined
... """ % dict(server=link_server))
>>> print
system(buildout),
>>> print
_(system(buildout))
Uninstalling demo.
Installing demo.
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