Description
DateTime Macro fails when running Unit Tests on Mac OS X
Steps to reproduce
1. Install Fink Python 2.3 on Mac OS X as per installation instructions.
2. Install MoinMoin as per instructions
3. Run Unit Tests
Details
MoinMoin Diagnosis ======================
Release 1.3.5
Revision 1.3.5 release
Python version 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)]
Python installed to /System/Library/Frameworks/Python.framework/Versions/2.3
PyXML is NOT installed
Python Path:
/path/to/wikiconfig
/usr/local/share/moin/guffwiki
/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
Checking directories...
data directory tests OK (set to '/usr/local/share/moin/guffwiki/data')
user directory tests OK (set to '/usr/local/share/moin/guffwiki/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
Page: page.exists() finds existing pages only ... ok
PageEditor: expand 82.152.166.225 CamelCase ... ok
PageEditor: expand 82.152.166.225 extended name - disabled ... ok
PageEditor: expand 82.152.166.225 extended name - enabled ... ok
PageEditor: expand [[MailTo(mailinglist@alexanderweb.de)]] ... ok
PageEditor: expand user variables ... ok
PageEditor: expand general variables ... ok
parser.wiki: empty lines before block element ignored ... ok
parser.wiki: paragraph closed before block element ... ok
parser.wiki: close open inline tag when block close ... ok
parser.wiki: DateTime macro ... FAIL
parser.wiki: escape html markup in getText formatted call with link ... ok
parser.wiki: escape html markup in getText formatted call ... ok
parser.wiki: escape html markup in GetText macro ... ok
parser.wiki: escape html markup in getText non formatted call ... ok
parser.wiki: escape html markup in pre ... ok
parser.wiki: escape html markup in pre with hashbang ... ok
parser.wiki: escape html markup in python code area ... ok
parser.wiki: escape html markup in `tt` ... ok
parser.wiki: escape html markup in {{{tt... okparser.wiki: escape wiki table markup in pre ... ok parser.wiki: escape wiki table markup in pre with hashbang ... ok parser.wiki: escape wiki table markup in python code area ... ok parser.wiki: escape wiki table markup in tt ... ok parser.wiki: escape wiki table markup in tt ... ok parser.wiki: ignore white space around heading text ... ok parser.wiki: empty line separates paragraphs ... ok parser.wiki: first paragraph should be in <p> ... ok parser.wiki: create paragraph after block markup ... ok parser.wiki:
long rule shortened to hr6 ... ok parser.wiki: --- is no rule ... ok parser.wiki:
is standard rule ... ok parser.wiki:
rules with size ... ok parser.wiki: TOC links to headings with white space ... ok parser.wiki: text formating ... ok pysupport: import existing wiki plugin ... ok pysupport: import existing moin plugin ... ok pysupport: import nonexistent moin plugin fail ... ok pysupport: import nonexistent wiki plugin fail ... ok repair_language: should replace known language ... ok repair_language: return crlf line endings ... ok repair_language: should not replace in page body ... ok repair_language: should not replace unknown langauge ... 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: 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: 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 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: create group from first level list items ... ok wikimacro: trivial macro works ... ok wikiutil: good form names accepted, bad rejected ... 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
====================================================================== FAIL: parser.wiki: DateTime macro
Traceback (most recent call last):
- File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MoinMoin/_tests/test_parser_wiki.py", line 197, in testDateTimeMacro
- 'Expected "%(expected)s" but got "%(result)s"; %(note)s' % locals())
- raise self.failureException, \
AssertionError: Expected "1970-01-06 00:00:00" but got "1970-01-05 23:00:00";
- If this fails, it is likely a problem in your python / libc, not in moin. See also:
<http://sourceforge.net/tracker/index.php?func=detail&
aid=902172&group_id=5470&atid=105470>
Ran 110 tests in 7.215s
FAILED (failures=1) }}}
Workaround
Not sure about how to workaround it.
Discussion
Please read the text below the traceback and think.
Plan
- Priority:
- Assigned to:
- Status:
