Commit 33f496c6 authored by Jason R. Coombs's avatar Jason R. Coombs

Add test capturing failure on Python 2.6. Ref #236

--HG--
extra : rebase_source : 99a2b1e437691f9e1a9982357bc70d91fce91953
parent ca46f074
[console_scripts]
easy_install = setuptools.command.easy_install:main
easy_install-3.4 = setuptools.command.easy_install:main
easy_install-2.6 = setuptools.command.easy_install:main
[distutils.commands]
alias = setuptools.command.alias:alias
......
......@@ -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()
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