CRLF line terminators in files in zope.schema-3.8.1.zip

Bug #857924 reported by Arfrever Frehtes Taifersar Arahesis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.schema
Fix Released
Undecided
Unassigned

Bug Description

Files in zope.schema-3.8.0.tar.gz have LF line terminators.
Files in zope.schema-3.8.1.zip have CRLF line terminators (see output of 'file $(find -type f | sort)'), which break test suite.

$ PYTHONPATH="src" python2.7 setup.py test
running test
running egg_info
writing requirements to src/zope.schema.egg-info/requires.txt
writing src/zope.schema.egg-info/PKG-INFO
writing namespace_packages to src/zope.schema.egg-info/namespace_packages.txt
writing top-level names to src/zope.schema.egg-info/top_level.txt
writing dependency_links to src/zope.schema.egg-info/dependency_links.txt
reading manifest file 'src/zope.schema.egg-info/SOURCES.txt'
writing manifest file 'src/zope.schema.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 91, in <module>
    tests_require='zope.testing',
  File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.7/site-packages/setuptools/command/test.py", line 137, in run
    self.with_project_on_sys_path(self.run_tests)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/test.py", line 117, in with_project_on_sys_path
    func()
  File "/usr/lib64/python2.7/site-packages/setuptools/command/test.py", line 146, in run_tests
    testLoader = loader_class()
  File "/usr/lib64/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib64/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib64/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib64/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python2.7/unittest/loader.py", line 113, in loadTestsFromName
    test = obj()
  File "setup.py", line 56, in alltests
    suite.addTest(mod.test_suite())
  File "/tmp/zope.schema-3.8.1/src/zope/schema/tests/test_docs.py", line 28, in test_suite
    doctest.DocFileSuite('../sources.txt', optionflags=doctest.ELLIPSIS),
  File "/usr/lib64/python2.7/doctest.py", line 2453, in DocFileSuite
    suite.addTest(DocFileTest(path, **kw))
  File "/usr/lib64/python2.7/doctest.py", line 2385, in DocFileTest
    test = parser.get_doctest(doc, globs, name, path, 0)
  File "/usr/lib64/python2.7/doctest.py", line 610, in get_doctest
    return DocTest(self.get_examples(string, name), globs,
  File "/usr/lib64/python2.7/doctest.py", line 624, in get_examples
    return [x for x in self.parse(string, name)
  File "/usr/lib64/python2.7/doctest.py", line 586, in parse
    self._parse_example(m, name, lineno)
  File "/usr/lib64/python2.7/doctest.py", line 656, in _parse_example
    lineno + len(source_lines))
  File "/usr/lib64/python2.7/doctest.py", line 742, in _check_prefix
    (lineno+i+1, name, line))
ValueError: line 52 of the docstring for sources.txt has inconsistent leading whitespace: '\r'

Revision history for this message
Arfrever Frehtes Taifersar Arahesis (arfrever-fta) wrote :

Fixed in >=4.0.0.

Changed in zope.schema:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.