summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-08-09 22:02:00 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-08-09 22:02:00 -0400
commitc5779cbe9f0e1b77ad650c2ce19e4358ddce7226 (patch)
tree380a2eb21f39afdf5233c46f682350dc37cc8ec9 /setuptools/tests
parent4378eda9d4c5d20a79d6df6770ed83421fc1abcb (diff)
downloadpython-setuptools-git-c5779cbe9f0e1b77ad650c2ce19e4358ddce7226.tar.gz
Added test to capture behavior expected behavior on Windows with spaces in the filename
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_resources.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index 15f44da4..c9fcf76c 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -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