Commit c5779cbe authored by Jason R. Coombs's avatar Jason R. Coombs

Added test to capture behavior expected behavior on Windows with spaces in the filename

parent 4378eda9
[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
......@@ -502,6 +502,7 @@ class ParseTests(TestCase):
class ScriptHeaderTests(TestCase):
non_ascii_exe = '/Users/José/bin/python'
exe_with_spaces = r'C:\Program Files\Python33\python.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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment