From 33f496c61e086bd1ac701e44bc17315c0442010c Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 1 Aug 2014 15:29:11 -0400 Subject: Add test capturing failure on Python 2.6. Ref #236 --HG-- extra : rebase_source : 99a2b1e437691f9e1a9982357bc70d91fce91953 --- setuptools/tests/test_sandbox.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'setuptools/tests') 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() -- cgit v1.2.1