Hi there,

with Python 2.7 final being released, I ran the ZTK tests against it.

zope.exceptions, zope.formlib and zope.proxy all have one test output
related failure.

RestrictedPython will need a security review.

Any help with those appreciated,

Hanno


Full test output:

Running test-ztk-zope.formlib
test-ztk-zope.formlib failed with:
Running zope.testing.testrunner.layer.UnitTests tests:
  Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds.

Failure in test
/opt/eggs/zope.formlib-4.0.3-py2.7.egg/zope/formlib/tests/../form.txt
Traceback (most recent call last):
  File "/opt/python/parts/opt/lib/python2.7/unittest/case.py", line 318, in run
    testMethod()
  File "/opt/python/parts/opt/lib/python2.7/doctest.py", line 2153, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for form.txt
  File "/opt/eggs/zope.formlib-4.0.3-py2.7.egg/zope/formlib/tests/../form.txt",
line 0

----------------------------------------------------------------------
File "/opt/eggs/zope.formlib-4.0.3-py2.7.egg/zope/formlib/tests/../form.txt",
line 217, in form.txt
Failed example:
    MyForm(None, request)() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
Expected:
    There were errors:
    (u'Invalid floating point data',
     <exceptions.ValueError instance at ...>)
    ('max_size', u'Maximum size', RequiredMissing('max_size'))
    <input class="textType" id="form.name" name="form.name" size="20"
           type="text" value="bob"  />
    <input class="textType" id="form.min_size" name="form.min_size" size="10"
           type="text" value="bob"  />
    <span class="error">Invalid floating point data</span>
    <input class="textType" id="form.max_size" name="form.max_size" size="10"
           type="text" value=""  />
    <span class="error">Required input is missing.</span>
    <input class="textType" id="form.color" name="form.color" size="20"
           type="text" value=""  />
    {'name': u'bob'}
Got:
    There were errors:
    (u'Invalid floating point data', ValueError('could not convert
string to float: bob',))
    ('max_size', u'Maximum size', RequiredMissing('max_size'))
    <input class="textType" id="form.name" name="form.name" size="20"
type="text" value="bob"  />
    <input class="textType" id="form.min_size" name="form.min_size"
size="10" type="text" value="bob"  />
    <span class="error">Invalid floating point data</span>
    <input class="textType" id="form.max_size" name="form.max_size"
size="10" type="text" value=""  />
    <span class="error">Required input is missing.</span>
    <input class="textType" id="form.color" name="form.color"
size="20" type="text" value=""  />
    {'name': u'bob'}


  Ran 398 tests with 1 failures and 0 errors in 2.037 seconds.
Tearing down left over layers:
  Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds.


Running test-ztk-zope.proxy
test-ztk-zope.proxy failed with:
Running zope.testing.testrunner.layer.UnitTests tests:
  Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds.


Failure in test test_setProxiedObject (zope.proxy.tests.test_proxy)
Traceback (most recent call last):
  File "/opt/python/parts/opt/lib/python2.7/unittest/case.py", line 318, in run
    testMethod()
  File "/opt/python/parts/opt/lib/python2.7/doctest.py", line 2153, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
zope.proxy.tests.test_proxy.test_setProxiedObject
  File 
"/opt/eggs/zope.proxy-3.6.0-py2.7-macosx-10.6-x86_64.egg/zope/proxy/tests/test_proxy.py",
line 683, in test_setProxiedObject

----------------------------------------------------------------------
File 
"/opt/eggs/zope.proxy-3.6.0-py2.7-macosx-10.6-x86_64.egg/zope/proxy/tests/test_proxy.py",
line 709, in zope.proxy.tests.test_proxy.test_setProxiedObject
Failed example:
    setProxiedObject(c1, None)
Expected:
    Traceback (most recent call last):
    TypeError: setProxiedObject() argument 1 must be zope.proxy.ProxyBase, not C
Got:
    Traceback (most recent call last):
      File "/opt/python/parts/opt/lib/python2.7/doctest.py", line 1248, in __run
        compileflags, 1) in test.globs
      File "<doctest
zope.proxy.tests.test_proxy.test_setProxiedObject[9]>", line 1, in
<module>
        setProxiedObject(c1, None)
    TypeError: must be zope.proxy.ProxyBase, not C


  Ran 32 tests with 1 failures and 0 errors in 0.026 seconds.
Tearing down left over layers:
  Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds.


Running test-ztk-zope.exceptions
test-ztk-zope.exceptions failed with:
Running zope.testing.testrunner.layer.UnitTests tests:
  Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds.


Failure in test testMultilineException
(zope.exceptions.tests.test_exceptionformatter.Test)
Traceback (most recent call last):
  File "/opt/python/parts/opt/lib/python2.7/unittest/case.py", line 318, in run
    testMethod()
  File 
"/opt/eggs/zope.exceptions-3.6.0-py2.7.egg/zope/exceptions/tests/test_exceptionformatter.py",
line 160, in testMultilineException
    'SyntaxError: unexpected EOF while parsing'])
  File "/opt/python/parts/opt/lib/python2.7/unittest/case.py", line
494, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/opt/python/parts/opt/lib/python2.7/unittest/case.py", line
723, in assertListEqual
    self.assertSequenceEqual(list1, list2, msg, seq_type=list)
  File "/opt/python/parts/opt/lib/python2.7/unittest/case.py", line
705, in assertSequenceEqual
    self.fail(msg)
  File "/opt/python/parts/opt/lib/python2.7/unittest/case.py", line 393, in fail
    raise self.failureException(msg)
AssertionError: Lists differ: ['    syntax error', '        ... != ['
  syntax error', '        ...

First differing element 2:
SyntaxError: invalid syntax
SyntaxError: unexpected EOF while parsing

- ['    syntax error', '               ^', 'SyntaxError: invalid syntax']
+ ['    syntax error',
+  '               ^',
+  'SyntaxError: unexpected EOF while parsing']

  Ran 10 tests with 1 failures and 0 errors in 0.003 seconds.
Tearing down left over layers:
  Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds.
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to