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
c5779cbe
Commit
c5779cbe
authored
Aug 09, 2013
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test to capture behavior expected behavior on Windows with spaces in the filename
parent
4378eda9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
setuptools.egg-info/requires.txt
setuptools.egg-info/requires.txt
+6
-6
setuptools/tests/test_resources.py
setuptools/tests/test_resources.py
+4
-0
No files found.
setuptools.egg-info/requires.txt
View file @
c5779cbe
[ssl:sys_platform=='win32']
wincertstore==0.1
[certs]
certifi==0.0.8
[ssl:
python_version in '2.4, 2.5
']
ssl==1.16
[ssl:
sys_platform=='win32
']
wincertstore==0.1
[ssl:sys_platform=='win32' and python_version=='2.4']
ctypes==1.0.2
\ No newline at end of file
ctypes==1.0.2
[ssl:python_version in '2.4, 2.5']
ssl==1.16
\ No newline at end of file
setuptools/tests/test_resources.py
View file @
c5779cbe
...
...
@@ -502,6 +502,7 @@ class ParseTests(TestCase):
class
ScriptHeaderTests
(
TestCase
):
non_ascii_exe
=
'/Users/José/bin/python'
exe_with_spaces
=
r'C:\
P
rogram Files\
Py
thon33\
py
thon.exe'
def
test_get_script_header
(
self
):
if
not
sys
.
platform
.
startswith
(
'java'
)
or
not
is_sh
(
sys
.
executable
):
...
...
@@ -515,6 +516,9 @@ class ScriptHeaderTests(TestCase):
self
.
assertEqual
(
get_script_header
(
'#!/usr/bin/python'
,
executable
=
self
.
non_ascii_exe
),
'#!%s -x
\
n
'
%
self
.
non_ascii_exe
)
candidate
=
get_script_header
(
'#!/usr/bin/python'
,
executable
=
self
.
exe_with_spaces
)
self
.
assertEqual
(
candidate
,
'#!"%s"
\
n
'
%
self
.
exe_with_spaces
)
def
test_get_script_header_jython_workaround
(
self
):
# This test doesn't work with Python 3 in some locales
...
...
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