Description

I have just installed MoinMoin on MacOSX, having created a wiki called 'project' corresponding to 'mywiki' of the example. Front page is OK. I ran the unit tests, as asked. This is the output from the unit test http://localhost/project?action=test which showed 2 errors.

MoinMoin Diagnosis
======================

Release 1.5.4
Revision release
Python version 2.3.5 (#1, Mar 20 2005, 20:38:20) 
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)]
Python installed to /System/Library/Frameworks/Python.framework/Versions/2.3
PyXML is NOT installed
Python Path:
   /path/to/wikiconfig
   /usr/local/share/moin/project
   /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip
   /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3
   /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin
   /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac
   /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages
   /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk
   /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload
   /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages
   /System/Library/Frameworks/Python.framework/Versions/2.3/Extras/lib/python
Checking directories...
    data directory tests OK (set to '/usr/local/share/moin/project/data')
    user directory tests OK (set to '/usr/local/share/moin/project/data/user')

Server Environment:
    ONLY AVAILABLE FOR LOCAL REQUESTS ON THIS HOST!

Unit Tests:
error: access error like a dict ... ok
error: create with encoded string ... ok
error: create with any object ... ok
error: create with unicode ... ok
testSyntaxReference (MoinMoin._tests.test_formatter.FormatterTestCase) ... Formatting using <class MoinMoin.formatter.dom_xml.Formatter at 0x5d1fc0>
ERROR
testQuoting (MoinMoin._tests.test_packages.QuotingTestCase) ... ok
testBasicPackageThings (MoinMoin._tests.test_packages.UnsafePackageTestcase) ... ERROR
Page: page.exists() finds existing pages only ... ok
PageEditor: expand 82.69.28.59 CamelCase ... ok
PageEditor: expand 82.69.28.59 extended name - enabled ... ok
PageEditor: expand [[MailTo(tw@waldmann-edv.de)]] ... ok
PageEditor: expand user variables ... ok
PageEditor: expand general variables ... ok
pysupport: import existing wiki plugin ... ok
pysupport: import name from existing module ... ok
pysupport: import nonexistent attritbue raises AttributeError ... ok
pysupport: import nonexistent module raises ImportError ... ok
pysupport: import nonexistent wiki plugin fail ... ok
request: getPageNameFromQueryString: ascii ... ok
request: getPageNameFromQueryString: non ascii ... ok
request: getPageNameFromQueryString: under_score ... ok
request: normalize pagename: restrict groups to alpha numeric Unicode ... ok
request: httpDate default rfc1123 ... ok
request: httpDate rfc850 ... ok
request: normalize pagename: normalize slashes ... ok
request: normalize pagename: normalize whitespace ... ok
request: normalize pagename: remove invalid unicode chars ... ok
request: normalize pagename: underscore convert to spaces and normalized ... ok
search: quoting bug - unquoted terms ... ok
search: quoting bug - quoted terms ... ok
user: encode ascii password ... ok
user: encode unicode password ... ok
user: isValidName: reject group names ... ok
user: isValidName: reject unicode non alpha numeric characters ... ok
user: isValidName: accept names in any language, with spaces ... ok
user: isValidName: reject leading, trailing or multiple whitespace ... ok
user: login with ascii password ... ok
user: login with non-ascii password in pre 1.3 user file ... ok
user: login replace old non-ascii password in pre 1.3 user file ... ok
user: login with non-ascii password ... ok
util.lock: ExclusiveLock: acquire ... ok
util.lock: ExclusiveLock: acquire after timeout ... ok
util.lock: os.stat().mtime consistency with time.time() ... ok
util.lock: ExclusiveLock: lock is exclusive ... ok
util.lock: ExclusiveLock: exists ... ok
util.lock: ExclusiveLock: expire ... ok
util.lock: ExclusiveLock: isExpired ... ok
util.lock: ExclusiveLock: isLocked ... ok
util.lock: ExclusiveLock: release ... ok
util.lock: ExclusiveLock: raise ValueError for timeout < 2.0 ... ok
util.mail: encode address: 'Phrase <local@domain>' ... ok
util.mail: encode Uncode address: 'ויקי <local@domain>' ... ok
util.mail: encode address with empty address: 'Phrase <>' ... ok
util.mail: encode address with empty phrase: '<local@domain>' ... ok
util.mail: encode invalid address 'Phrase <blah' ... ok
util.mail: encode simple address: local@domain ... ok
util.mail: decoding spam safe mail ... ok
util.web: make query sting from argument ... ok
util.web: make query sting from argument and keywords ... ok
util.web: make query sting from keywords ... ok
util.web: creating html select with no selection ... ok
util.web: creating html select with non existing selection ... ok
util.web: creating html select with selected item ... ok
widget.html: append to and extend composite element ... ok
widget.html: creating html widgets ... ok
widegt.html: invalid attributes raises exception ... ok
wikiacl: allow extra white space between entries ... ok
wikiacl: bad guy may not allowed anything ... ok
wikiacl: default meta acl ... ok
wikiacl: empty acl string raise StopIteration ... ok
wikiacl: empty names with rights ... ok
wikiacl: empty rights ... ok
wikiacl: ignore rights not in acl_rights_valid ... ok
wikiacl: ignore invalid acl ... ok
wikiacl: mixed wiki names and names with spaces ... ok
wikiacl: acl modifiers ... ok
wikiacl: multiple entries ... ok
wikiacl: multiple entries with spaces ... ok
wikiacl: multiple names with spaces ... ok
wikiacl: single name with spaces ... ok
wikiacl: single wiki name, single right ... ok
wikiacl: white space acl string raise StopIteration ... ok
wikiacl: applying acl by user name ... ok
wikidicts: create dict from keys and values in text ... ok
wikidict: names in SystemPagesGroup should be in request.dicts ... ok
wikidicts: initFromText: CamelCase links ... ok
wikidicts: initFromText: extended link ... ok
wikidicts: initFromText: extended names ... ok
wikidicts: initFromText: ignore anything but first level list itmes ... ok
wikidicts: initFromText: ignore non first level items ... ok
wikidicts: initFromText: strip whitespace around items ... ok
wikimacro: trivial macro works ... ok
wikiutil: good system page names accepted, bad rejected ... ok
wikiutil: good template names accepted, bad rejected ... ok
wikixml.marshal: create new marshal ... ok
wikixml.marshal: setting marshal property ... ok

======================================================================
ERROR: testSyntaxReference (MoinMoin._tests.test_formatter.FormatterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/_tests/test_formatter.py", line 31, in testSyntaxReference
    self.formatPage("SyntaxReference", formatter)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/_tests/test_formatter.py", line 45, in formatPage
    return self.request.redirectedOutput(page.send_page, self.request)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/request.py", line 703, in redirectedOutput
    function(*args, **kw)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/Page.py", line 1236, in send_page
    start_line=pi_lines)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/Page.py", line 1315, in send_page_content
    self.format(parser)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/Page.py", line 1332, in format
    parser.format(self.formatter)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/parser/wiki.py", line 1067, in format
    self.request.write(self._indent_to(indlen, indtype, numtype, numstart))
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/parser/wiki.py", line 553, in _indent_to
    close.append(self.formatter.paragraph(0))
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/formatter/dom_xml.py", line 299, in paragraph
    return self._set_tag('p', on)
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/formatter/dom_xml.py", line 159, in _set_tag
    raise ValueError, "closing of <%s> expected, but <%s> closed" % (last_tag, tag)
ValueError: closing of <li> expected, but <p> closed

======================================================================
ERROR: testBasicPackageThings (MoinMoin._tests.test_packages.UnsafePackageTestcase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/_tests/test_packages.py", line 54, in setUp
    raise TestSkipped('This test needs to be run using the test wiki.')
TestSkipped: This test needs to be run using the test wiki.

----------------------------------------------------------------------
Ran 96 tests in 6.932s

FAILED (errors=2)

I (User:Benabik) also got the same error when setting up MoinMoin on my MacBookPro running OS 10.4.7.

/!\ The formatter error is expected and the other one is self-explaining why it happens. Nothing you should worry about. -- ThomasWaldmann 2006-08-29 06:46:56


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/UnitTestMacOSX (last edited 2007-10-29 19:12:14 by localhost)