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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.buildout
Commits
b5681bc8
Commit
b5681bc8
authored
May 15, 2024
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] Fix zc.recipe.egg testing framework
parent
e1b2644e
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 @
b5681bc8
...
...
@@ -270,6 +270,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 @
b5681bc8
...
...
@@ -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
...
...
@@ -3926,12 +3926,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 @
b5681bc8
...
...
@@ -373,7 +373,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.
...
...
@@ -393,7 +393,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