[cmf-tests] FAILED (failures=1) : CMF-trunk Zope-2.10 Python-2.4.4 : Linux

CMF Tests cmf-tests at epy.co.at
Fri May 23 21:44:46 EDT 2008


CMF Tests : FAILED (failures=1)
CMF-trunk Zope-2.10 Python-2.4.4 : Linux

Running /usr/local/python2.4/bin/python /home/stefan/autotest/temp/python24-zope210/test.py -q --config-file etc/zope.conf --path Products --test-path Products
Installing GenericSetup ... done (0.638s)
Parsing /home/stefan/autotest/temp/python24-zope210-cmf22/etc/zope.conf
Running unit tests:


Failure in test /home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt
Failed doctest test for schema.txt
  File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 0

----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 24, in schema.txt
Failed example:
    class IFooContentView(Interface):
        foo_text = schema.Text()
        foo_bytes = schema.Bytes()
        foo_upload = FileUpload()
        foo_choice = schema.Choice(values=(u'f\xf6\xf6', u'bar'))
        foo_datetime = schema.Datetime()
        foo_set = schema.Set()
        foo_list = schema.List()
        foo_tuple = schema.Tuple()
        foo_prop = schema.Text()
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[5]>", line 1, in ?
        class IFooContentView(Interface):
      File "<doctest schema.txt[5]>", line 5, in IFooContentView
        foo_choice = schema.Choice(values=(u'f\xf6\xf6', u'bar'))
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/schema/_field.py", line 216, in __init__
        self.vocabulary = SimpleVocabulary.fromValues(values)
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/schema/vocabulary.py", line 98, in fromValues
        terms = [cls.createTerm(value) for value in values]
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/schema/vocabulary.py", line 108, in createTerm
        return SimpleTerm(*args)
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/schema/vocabulary.py", line 41, in __init__
        self.token = str(token)
    UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128)
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 36, in schema.txt
Failed example:
    class FooContentAdapter(object):

        foo_text = ProxyFieldProperty(IFooContentView['foo_text'])
        foo_bytes = ProxyFieldProperty(IFooContentView['foo_bytes'])
        foo_upload = ProxyFieldProperty(IFooContentView['foo_upload'])
        foo_choice = ProxyFieldProperty(IFooContentView['foo_choice'])
        foo_datetime = ProxyFieldProperty(IFooContentView['foo_datetime'])
        foo_set = ProxyFieldProperty(IFooContentView['foo_set'])
        foo_list = ProxyFieldProperty(IFooContentView['foo_list'])
        foo_tuple = ProxyFieldProperty(IFooContentView['foo_tuple'])
        foo_prop = ProxyFieldProperty(IFooContentView['foo_prop'])

        def __init__(self, context):
            self.context = context
            self.encoding = 'utf-8'
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[7]>", line 1, in ?
        class FooContentAdapter(object):
      File "<doctest schema.txt[7]>", line 3, in FooContentAdapter
        foo_text = ProxyFieldProperty(IFooContentView['foo_text'])
    NameError: name 'IFooContentView' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 53, in schema.txt
Failed example:
    adapter = FooContentAdapter(content)
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[9]>", line 1, in ?
        adapter = FooContentAdapter(content)
    NameError: name 'FooContentAdapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 58, in schema.txt
Failed example:
    adapter.foo_text = foo_text
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[11]>", line 1, in ?
        adapter.foo_text = foo_text
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 59, in schema.txt
Failed example:
    content.foo_text
Expected:
    'foo'
Got:
    ''
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 61, in schema.txt
Failed example:
    adapter.foo_text == foo_text
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[13]>", line 1, in ?
        adapter.foo_text == foo_text
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 65, in schema.txt
Failed example:
    adapter.foo_choice = foo_choice
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[15]>", line 1, in ?
        adapter.foo_choice = foo_choice
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 66, in schema.txt
Failed example:
    content.foo_choice
Expected:
    'f\xc3\xb6\xc3\xb6'
Got:
    ''
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 68, in schema.txt
Failed example:
    adapter.foo_choice == foo_choice
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[17]>", line 1, in ?
        adapter.foo_choice == foo_choice
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 74, in schema.txt
Failed example:
    adapter.foo_bytes = foo_bytes
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[19]>", line 1, in ?
        adapter.foo_bytes = foo_bytes
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 75, in schema.txt
Failed example:
    content.foo_bytes
Expected:
    'f\xc3\xb6\xc3\xb6'
Got:
    ''
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 77, in schema.txt
Failed example:
    adapter.foo_bytes == foo_bytes
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[21]>", line 1, in ?
        adapter.foo_bytes == foo_bytes
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 81, in schema.txt
Failed example:
    adapter.foo_upload = foo_upload
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[23]>", line 1, in ?
        adapter.foo_upload = foo_upload
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 82, in schema.txt
Failed example:
    content.foo_upload
Expected:
    'f\xc3\xb6\xc3\xb6'
Got:
    ''
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 84, in schema.txt
Failed example:
    adapter.foo_upload == foo_upload
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[25]>", line 1, in ?
        adapter.foo_upload == foo_upload
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 94, in schema.txt
Failed example:
    isinstance(adapter.foo_bytes, Pdata)
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[30]>", line 1, in ?
        isinstance(adapter.foo_bytes, Pdata)
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 96, in schema.txt
Failed example:
    adapter.foo_bytes == foo_bytes
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[31]>", line 1, in ?
        adapter.foo_bytes == foo_bytes
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 105, in schema.txt
Failed example:
    adapter.foo_datetime = foo_datetime
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[36]>", line 1, in ?
        adapter.foo_datetime = foo_datetime
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 106, in schema.txt
Failed example:
    isinstance(content.foo_datetime, DateTime)
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 108, in schema.txt
Failed example:
    adapter.foo_datetime == foo_datetime
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[38]>", line 1, in ?
        adapter.foo_datetime == foo_datetime
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 113, in schema.txt
Failed example:
    foo_python_datetime = adapter.foo_datetime
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[41]>", line 1, in ?
        foo_python_datetime = adapter.foo_datetime
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 114, in schema.txt
Failed example:
    adapter.foo_datetime = foo_python_datetime
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[42]>", line 1, in ?
        adapter.foo_datetime = foo_python_datetime
    NameError: name 'foo_python_datetime' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 117, in schema.txt
Failed example:
    adapter.foo_datetime == foo_python_datetime
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[44]>", line 1, in ?
        adapter.foo_datetime == foo_python_datetime
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 123, in schema.txt
Failed example:
    adapter.foo_set = foo_set
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[46]>", line 1, in ?
        adapter.foo_set = foo_set
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 124, in schema.txt
Failed example:
    content.foo_set
Expected:
    (1, 3, 4)
Got:
    ()
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 126, in schema.txt
Failed example:
    adapter.foo_set == foo_set
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[48]>", line 1, in ?
        adapter.foo_set == foo_set
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 132, in schema.txt
Failed example:
    adapter.foo_list = foo_list
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[50]>", line 1, in ?
        adapter.foo_list = foo_list
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 133, in schema.txt
Failed example:
    content.foo_list
Expected:
    [3, 1, 'foo']
Got:
    []
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 135, in schema.txt
Failed example:
    adapter.foo_list == foo_list
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[52]>", line 1, in ?
        adapter.foo_list == foo_list
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 141, in schema.txt
Failed example:
    adapter.foo_tuple = foo_tuple
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[54]>", line 1, in ?
        adapter.foo_tuple = foo_tuple
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 142, in schema.txt
Failed example:
    content.foo_tuple
Expected:
    (3, 1, 'foo')
Got:
    ()
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 144, in schema.txt
Failed example:
    adapter.foo_tuple == foo_tuple
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[56]>", line 1, in ?
        adapter.foo_tuple == foo_tuple
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 150, in schema.txt
Failed example:
    adapter.foo_prop = foo_text
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[58]>", line 1, in ?
        adapter.foo_prop = foo_text
    NameError: name 'adapter' is not defined
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 151, in schema.txt
Failed example:
    content.foo_prop
Expected:
    'foo'
Got:
    ''
----------------------------------------------------------------------
File "/home/stefan/autotest/temp/python24-zope210-cmf22/Products/CMFDefault/formlib/schema.txt", line 153, in schema.txt
Failed example:
    adapter.foo_prop == foo_prop
Exception raised:
    Traceback (most recent call last):
      File "/home/stefan/autotest/temp/python24-zope210/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest schema.txt[60]>", line 1, in ?
        adapter.foo_prop == foo_prop
    NameError: name 'adapter' is not defined

  Ran 835 tests with 1 failures and 0 errors in 9.439 seconds.
Running Products.CMFCore.testing.FunctionalZCMLLayer tests:
  Set up Products.CMFCore.testing.FunctionalZCMLLayer in 1.000 seconds.
  Ran 51 tests with 0 failures and 0 errors in 0.374 seconds.
Running Products.CMFCalendar.testing.FunctionalLayer tests:
  Set up Products.CMFCalendar.testing.FunctionalLayer in 0.871 seconds.
  Ran 22 tests with 0 failures and 0 errors in 3.609 seconds.
Running Products.CMFCore.testing.EventZCMLLayer tests:
  Tear down Products.CMFCalendar.testing.FunctionalLayer in 0.067 seconds.
  Tear down Products.CMFCore.testing.FunctionalZCMLLayer in 0.005 seconds.
  Set up Products.CMFCore.testing.EventZCMLLayer in 0.000 seconds.
  Ran 25 tests with 0 failures and 0 errors in 2.020 seconds.
Running Products.CMFCore.testing.ExportImportZCMLLayer tests:
  Tear down Products.CMFCore.testing.EventZCMLLayer in 0.000 seconds.
  Set up Products.CMFCore.testing.ExportImportZCMLLayer in 0.000 seconds.
  Ran 109 tests with 0 failures and 0 errors in 20.586 seconds.
Running Products.CMFCore.testing.TraversingEventZCMLLayer tests:
  Tear down Products.CMFCore.testing.ExportImportZCMLLayer in 0.000 seconds.
  Set up Products.CMFCore.testing.TraversingEventZCMLLayer in 0.000 seconds.
  Ran 15 tests with 0 failures and 0 errors in 1.609 seconds.
Running Products.CMFCore.testing.TraversingZCMLLayer tests:
  Tear down Products.CMFCore.testing.TraversingEventZCMLLayer in 0.000 seconds.
  Set up Products.CMFCore.testing.TraversingZCMLLayer in 0.000 seconds.
  Ran 68 tests with 0 failures and 0 errors in 5.769 seconds.
Running Products.CMFDefault.testing.FunctionalLayer tests:
  Tear down Products.CMFCore.testing.TraversingZCMLLayer in 0.000 seconds.
  Set up Products.CMFCore.testing.FunctionalZCMLLayer in 0.774 seconds.
  Set up Products.CMFDefault.testing.FunctionalLayer in 0.623 seconds.
  Ran 56 tests with 0 failures and 0 errors in 9.005 seconds.
Running Products.CMFUid.testing.UidEventZCMLLayer tests:
  Tear down Products.CMFDefault.testing.FunctionalLayer in 0.063 seconds.
  Tear down Products.CMFCore.testing.FunctionalZCMLLayer in 0.006 seconds.
  Set up Products.CMFUid.testing.UidEventZCMLLayer in 0.000 seconds.
  Ran 12 tests with 0 failures and 0 errors in 1.081 seconds.
Running Products.DCWorkflow.testing.ExportImportZCMLLayer tests:
  Tear down Products.CMFUid.testing.UidEventZCMLLayer in 0.000 seconds.
  Set up Products.DCWorkflow.testing.ExportImportZCMLLayer in 0.739 seconds.
  Ran 37 tests with 0 failures and 0 errors in 2.098 seconds.
Running Products.GenericSetup.testing.ExportImportZCMLLayer tests:
  Tear down Products.DCWorkflow.testing.ExportImportZCMLLayer in 0.002 seconds.
  Set up Products.GenericSetup.testing.ExportImportZCMLLayer in 0.143 seconds.
  Ran 210 tests with 0 failures and 0 errors in 2.474 seconds.
Tearing down left over layers:
  Tear down Products.GenericSetup.testing.ExportImportZCMLLayer in 0.001 seconds.
Total: 1440 tests, 1 failures, 0 errors

FAILED (failures=1)


More information about the cmf-tests mailing list