← Back to team overview

zim-wiki team mailing list archive

Some tests of zim 0.51 fail

 

Hello!

I ran the tests with 'python test.py'. I have Fedora 15 beta and Python 2.7.1

Error log attached


Robin
======================================================================
ERROR: runTest (tests.gui.TestClipboard)
Test clipboard interaction
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/tests/gui.py", line 145, in runTest
    tree = clipboard.request_parsetree(None, notebook, page, block=True)
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/zim/gui/clipboard.py", line 321, in request_parsetree
    return parsetree_from_selectiondata(selectiondata, notebook, page)
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/zim/gui/clipboard.py", line 172, in parsetree_from_selectiondata
    targetname = str(selectiondata.target)
AttributeError: 'NoneType' object has no attribute 'target'

======================================================================
ERROR: testPreferencesDialog (tests.gui.TestDialogs)
Test PreferencesDialog
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/tests/gui.py", line 435, in testPreferencesDialog
    gui = zim.gui.GtkInterface()
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/zim/gui/__init__.py", line 314, in __init__
    gtk_window_set_default_icon()
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/zim/gui/widgets.py", line 91, in gtk_window_set_default_icon
    pixbuf = gtk.gdk.pixbuf_new_from_file(file.path)
GError: Couldn't recognize the image file format for file '/media/csd/rpmbuild/SOURCES/zim-0.51/icons/zim16.png'

======================================================================
ERROR: runTest (tests.gui.TestGtkInterface)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/tests/gui.py", line 486, in runTest
    ui = zim.gui.GtkInterface()
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/zim/gui/__init__.py", line 314, in __init__
    gtk_window_set_default_icon()
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/zim/gui/widgets.py", line 91, in gtk_window_set_default_icon
    pixbuf = gtk.gdk.pixbuf_new_from_file(file.path)
GError: Couldn't recognize the image file format for file '/media/csd/rpmbuild/SOURCES/zim-0.51/icons/zim16.png'

======================================================================
FAIL: testDefaulPlugins (tests.plugins.testPlugins)
Test loading default plugins
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/tests/plugins.py", line 53, in testDefaulPlugins
    self.assertTrue(len(interface.plugins) > 3)
AssertionError: False is not True

======================================================================
FAIL: runTest (tests.pageview.TestLists)
Test interaction for lists
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/tests/pageview.py", line 801, in runTest
    self.assertEqualDiff(tree.tostring(), wanted)
AssertionError: Strings differ:
  <?xml version='1.0' encoding='utf-8'?>
  <zim-tree raw="True">Dusss
- <li bullet="unchecked-box" indent="0"> Foo</li>
?             --
+ <li bullet="checked-box" indent="0"> Foo</li>
  <li bullet="checked-box" indent="0"> Bar</li>
  <li bullet="checked-box" indent="1"> Bar 1</li>
  <li bullet="checked-box" indent="2"> Bar 1.1</li>
  <li bullet="checked-box" indent="1"> Bar 2</li>
  <li bullet="checked-box" indent="1"> Bar 3</li>
- <li bullet="unchecked-box" indent="0"> Baz</li>
?             --
+ <li bullet="checked-box" indent="0"> Baz</li>
  Tja
  </zim-tree>

======================================================================
FAIL: runTest (tests.pageview.TestPageviewDialogs)
Test input/output of various pageview dialogs
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/tests/pageview.py", line 1194, in runTest
    self.assertEqual(dialog.form['width'], 48)
AssertionError: 0 != 48

======================================================================
FAIL: runTest (tests.pageview.TestTextBuffer)
Test serialization and interaction of the page view textbuffer
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/media/csd/rpmbuild/SOURCES/zim-0.51/tests/pageview.py", line 58, in runTest
    self.assertEqualDiff(resulttext, wikitext)
AssertionError: Strings differ:
  ====== Head1 ======
  
  ===== Head 2 =====
  
  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
  eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
  ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
  aliquip ex ea commodo consequat. Duis aute irure dolor in
  reprehenderit in voluptate velit esse cillum dolore eu fugiat
  nulla pariatur.  Excepteur sint occaecat cupidatat non proident,
  sunt in culpa qui officia deserunt mollit anim id est laborum.
  
  '''
  Some Verbatim here
  
        Indented and all: //foo//
  '''
  
        '''
        Also block-indentation of verbatim is possible.
                Even with additional per-line indentation
        '''
  
  IMAGE: {{../my-image.png?width=600|Foo Bar}}
  LINKS: [[:foo:bar]] [[./file.png]] file:///etc/passwd
  LINKS: [[Foo]][[Bar]]
  TAGS: @foo @bar
  
        Some indented
        paragraphs go here ...
  
  
  {{./equation003.png?type=equation}}
  
  
  Let's try these **bold**, //italic//, __underline__ and ~~strike~~
        And some ''//verbatim//'' with an indent halfway the paragraph
  And don't forget these: *bold*, /italic/ / * *^%#@#$#!@)_!)_
  
  A list
  * foo
        * ~~bar~~
        * baz
  And an indented list
        * foo
                * ~~bar~~
                * baz
  
  And a checkbox list
- [ ] item 1
?  ^
+ [x] item 1
?  ^
-       [*] sub item 1
?        ^
+       [x] sub item 1
?        ^
                * Some normal bullet
        [x] sub item 2
-       [ ] sub item 3
?        ^
+       [x] sub item 3
?        ^
- [ ] item 2
?  ^
+ [x] item 2
?  ^
- [ ] item 3
?  ^
+ [x] item 3
?  ^
        [x] item FOOOOOO !
  
  ----
  
  Some sub- and superscript like x^{2} and H_{2}O
  
  ====
  This is not a header
  
  That's all ...


----------------------------------------------------------------------
Ran 137 tests in 67.647s
Skipped 2 tests

FAILED (failures=4, errors=3)

Follow ups