SVN: r25407 - trunk/quixote/test
Neil Schemenauer <nascheme-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Thu, 21 Oct 2004 11:01:41 -0400
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: nascheme Date: 2004-10-21 11:01:27 -0400 (Thu, 21 Oct 2004) New Revision: 25407 Modified: trunk/quixote/test/utest_html.py Log: Unicode is somewhat broken in Python <= 2.3. Hack the test to skip unicode related stuff. Modified: trunk/quixote/test/utest_html.py =================================================================== --- trunk/quixote/test/utest_html.py 2004-10-21 13:00:19 UTC (rev 25406) +++ trunk/quixote/test/utest_html.py 2004-10-21 15:01:27 UTC (rev 25407) @@ -1,3 +1,4 @@ +import sys from sancho.utest import UTest from quixote import _py_htmltext @@ -3,5 +4,8 @@ markupchars = '<>&"' quotedchars = '<>&"' -unicodechars = u'\u1234' +if sys.hexversion >= 0x20400a2: + unicodechars = u'\u1234' +else: + unicodechars = 'x' # lie, Python <= 2.3 is broken class Wrapper: