aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_sandbox.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-08-01 15:29:11 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-08-01 15:29:11 -0400
commit33f496c61e086bd1ac701e44bc17315c0442010c (patch)
tree584c6707bdb96d04cee69e6ec6fefd1641788988 /setuptools/tests/test_sandbox.py
parentca46f074d12651e32250737c7f380b343b0882ec (diff)
downloadexternal_python_setuptools-33f496c61e086bd1ac701e44bc17315c0442010c.tar.gz
external_python_setuptools-33f496c61e086bd1ac701e44bc17315c0442010c.tar.bz2
external_python_setuptools-33f496c61e086bd1ac701e44bc17315c0442010c.zip
Add test capturing failure on Python 2.6. Ref #236
--HG-- extra : rebase_source : 99a2b1e437691f9e1a9982357bc70d91fce91953
Diffstat (limited to 'setuptools/tests/test_sandbox.py')
-rw-r--r--setuptools/tests/test_sandbox.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/tests/test_sandbox.py b/setuptools/tests/test_sandbox.py
index 0f2e693d..6a890ebc 100644
--- a/setuptools/tests/test_sandbox.py
+++ b/setuptools/tests/test_sandbox.py
@@ -73,5 +73,11 @@ class TestSandbox(unittest.TestCase):
setuptools.sandbox._execfile(target, vars(namespace))
assert namespace.result == 'passed'
+ def test_setup_py_with_CRLF(self):
+ setup_py = os.path.join(self.dir, 'setup.py')
+ with open(setup_py, 'wb') as stream:
+ stream.write(b'"degenerate script"\r\n')
+ setuptools.sandbox._execfile(setup_py, globals())
+
if __name__ == '__main__':
unittest.main()