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
Łukasz Nowak
slapos.buildout
Commits
a8b6b7bb
Commit
a8b6b7bb
authored
Sep 19, 2006
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows tweaks
parent
a9195197
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
src/zc/buildout/testing.py
src/zc/buildout/testing.py
+10
-4
src/zc/buildout/tests.py
src/zc/buildout/tests.py
+1
-0
No files found.
src/zc/buildout/testing.py
View file @
a8b6b7bb
...
...
@@ -255,7 +255,7 @@ class Handler(BaseHTTPServer.BaseHTTPRequestHandler):
self
.
send_header
(
'Content-Length'
,
str
(
len
(
out
)))
self
.
send_header
(
'Content-Type'
,
'text/html'
)
else
:
out
=
open
(
path
).
read
()
out
=
open
(
path
,
'rb'
).
read
()
self
.
send_header
(
'Content-Length'
,
len
(
out
))
if
path
.
endswith
(
'.egg'
):
self
.
send_header
(
'Content-Type'
,
'application/zip'
)
...
...
@@ -362,11 +362,17 @@ def install_develop(project, destination):
).
write
(
dist
.
location
)
def
_normalize_path
(
match
):
return
'/'
+
match
.
group
(
1
).
replace
(
os
.
path
.
sep
,
'/'
)
path
=
match
.
group
(
1
)
if
os
.
path
.
sep
==
'
\
\
'
:
path
=
path
.
replace
(
'
\
\
\
\
'
,
'/'
)
if
path
.
startswith
(
'
\
\
'
):
path
=
path
[
1
:]
return
'/'
+
path
.
replace
(
os
.
path
.
sep
,
'/'
)
normalize_path
=
(
re
.
compile
(
r'''[^'" \t\n\r]+%(sep)s_TEST_%(sep)s([^"' \t\n\r]+)'''
%
dict
(
sep
=
os
.
path
.
sep
)),
re
.
compile
(
r'''[^'" \t\n\r]+\
%(sep)s_[T
t][Ee][Ss][Tt]_\
%(sep)s([^
"' \t\n\r]+)'''
%
dict
(
sep
=
os
.
path
.
sep
)),
_normalize_path
,
)
...
...
src/zc/buildout/tests.py
View file @
a8b6b7bb
...
...
@@ -570,6 +570,7 @@ def test_suite():
(re.compile('
zc
.
buildout
(
-
\
S
+
)
?
[.]
egg
(
-
link
)
?
'),
'
zc
.
buildout
.
egg
'),
(re.compile('
creating
\
S
*
setup
.
cfg
'), '
creating
setup
.
cfg
'),
(re.compile('
hello
\
%
ssetup
' % os.path.sep), '
hello
/
setup
'),
])
),
...
...
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