Hi there. I'm looking to use web.py and deploy some stuff made with
it. As I'm used to, I looked in gentoo portage to check out the ebuild
status, turns out it has 0.31 but it's masked (= marked unstable, for
non-gentoo-speaking people ;) That usually means no one has checked it
out to see if it actually installs and works correctly.

My first stop to do that was run the test suite (from your
web.py-0.31.tar.gz) against a portage-installed web.py-0.31, and the
outcome is FAILED (failures=2, errors=11).

Even though it starts with:

 No module named pgdb (ignoring the postgres tests)
 No module named MySQLdb (ignoring the mysql tests)
 No module named sqlite (ignoring the sqlite tests)

it still runs many tests that depend on sqlite or pgdb (list at the
end of this post).
it also fails in two tests having something to do with unicode (full
output at the end of this post).

Are these issues known? Does the testUnicodeInput test error represent
an actual problem?
FYI, the current stable version of python in gentooland is 2.5.2 -
that's what I run the tests on.


**** missing sqlite
ERROR: testCommit (db.SqliteTest)
ERROR: testNestedTransactions (db.SqliteTest)
ERROR: testPooling (db.SqliteTest)
ERROR: testRollback (db.SqliteTest)
ERROR: testUnicode (db.SqliteTest)
ERROR: testWrongQuery (db.SqliteTest)
ERROR: test_multiple_insert (db.SqliteTest)
FAIL: Doctest: web.db.SqliteDB._py2sql
**** missing pgdb
ERROR: testBadSessionId (session.DBSessionTest)
ERROR: testParallelSessions (session.DBSessionTest)
ERROR: testSession (session.DBSessionTest)


======================================================================
ERROR: testUnicodeInput (__main__.ApplicationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/application.py", line 214, in testUnicodeInput
    f(u'\u1234')
  File "test/application.py", line 211, in f
    path = '/?' + urllib.urlencode({"name": name})
  File "/usr/lib/python2.5/urllib.py", line 1250, in urlencode
    v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u1234' in
position 0: ordinal not in range(128)

======================================================================
FAIL: Doctest: web.template.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.5/doctest.py", line 2128, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for web.template.test
  File "./web/template.py", line 1184, in test

----------------------------------------------------------------------
File "./web/template.py", line 1297, in web.template.test
Failed example:
    t(u'$def with (a)\n$a $:a')(u'\u203d')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest web.template.test[39]>", line 1, in <module>
        t(u'$def with (a)\n$a $:a')(u'\u203d')
      File "<doctest web.template.test[1]>", line 2, in t
        tmpl = Template(code, **keywords)
      File "./web/template.py", line 826, in __init__
        if text.startswith(BOM):
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in
position 0: ordinal not in range(128)
----------------------------------------------------------------------
File "./web/template.py", line 1299, in web.template.test
Failed example:
    t(u'$def with ()\nfoo')()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest web.template.test[40]>", line 1, in <module>
        t(u'$def with ()\nfoo')()
      File "<doctest web.template.test[1]>", line 2, in t
        tmpl = Template(code, **keywords)
      File "./web/template.py", line 826, in __init__
        if text.startswith(BOM):
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in
position 0: ordinal not in range(128)
----------------------------------------------------------------------
File "./web/template.py", line 1303, in web.template.test
Failed example:
    t(u'$def with (f)\n$:f("x")')(f)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.5/doctest.py", line 1228, in __run
        compileflags, 1) in test.globs
      File "<doctest web.template.test[42]>", line 1, in <module>
        t(u'$def with (f)\n$:f("x")')(f)
      File "<doctest web.template.test[1]>", line 2, in t
        tmpl = Template(code, **keywords)
      File "./web/template.py", line 826, in __init__
        if text.startswith(BOM):
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in
position 0: ordinal not in range(128)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to