Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
dc1b07f1
Commit
dc1b07f1
authored
Jan 20, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test capturing regression in script creation in WindowsScriptWriter.
parent
c808d232
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+12
-0
No files found.
setuptools/tests/test_easy_install.py
View file @
dc1b07f1
...
...
@@ -24,6 +24,7 @@ from setuptools import sandbox
from
setuptools
import
compat
from
setuptools.compat
import
StringIO
,
BytesIO
,
urlparse
from
setuptools.sandbox
import
run_setup
import
setuptools.command.easy_install
as
ei
from
setuptools.command.easy_install
import
(
easy_install
,
fix_jython_executable
,
nt_quote_arg
,
is_sh
,
ScriptWriter
,
CommandSpec
,
...
...
@@ -526,3 +527,14 @@ class TestCommandSpec:
cmd
=
writer
.
command_spec_class
.
from_string
(
sys
.
executable
)
assert
len
(
cmd
)
==
1
assert
cmd
[
0
]
==
sys
.
executable
class
TestWindowsScriptWriter
:
def
test_header
(
self
):
hdr
=
ei
.
WindowsScriptWriter
.
get_script_header
(
''
)
assert
hdr
.
startswith
(
'#!'
)
assert
hdr
.
endswith
(
'
\
n
'
)
hdr
=
hdr
.
lstrip
(
'#!'
)
hdr
=
hdr
.
rstrip
(
'
\
n
'
)
# header should not start with an escaped quote
assert
not
hdr
.
startswith
(
'
\
\
"'
)
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