Hi,

I'm new to python and web.py, so I ran the test suite to see if
everything's installed correctly, with 3 failures and 4 errors. Can
anyone tell me if the following test failures require additional
installations or configurations on my part? I only intend to use
sqlite, so it's mainly the unicode decode and sqlite3 assertions that
concern me. Thanks for any advice.

----- Begin shell session -----
samwan:~/webpy $ python test/alltests.py
No module named pgdb (ignoring the postgres tests)
No module named MySQLdb (ignoring the mysql tests)
.......................................................F.................................F......F......E......EEE...
======================================================================
ERROR: testUnicodeInput (application.ApplicationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/samwan/webpy/test/application.py", line 214, in
testUnicodeInput
    f(u'\u1234')
  File "/Users/samwan/webpy/test/application.py", line 211, in f
    path = '/?' + urllib.urlencode({"name": name})
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/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)

======================================================================
ERROR: testBadSessionId (session.DBSessionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/samwan/webpy/test/session.py", line 44, in setUp
    session = self.make_session(app)
  File "/Users/samwan/webpy/test/session.py", line 92, in make_session
    db = webtest.setup_database("postgres")
  File "/Users/samwan/webpy/test/webtest.py", line 14, in
setup_database
    db = web.database(dbn=dbname, db='webpy', user='scott',
pw='tiger', pooling=pooling)
  File "./web/db.py", line 1028, in database
    return _databases[dbn](**params)
  File "./web/db.py", line 851, in __init__
    db_module = self.get_db_module()
  File "./web/db.py", line 867, in get_db_module
    import pgdb as db
ImportError: No module named pgdb

======================================================================
ERROR: testParallelSessions (session.DBSessionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/samwan/webpy/test/session.py", line 44, in setUp
    session = self.make_session(app)
  File "/Users/samwan/webpy/test/session.py", line 92, in make_session
    db = webtest.setup_database("postgres")
  File "/Users/samwan/webpy/test/webtest.py", line 14, in
setup_database
    db = web.database(dbn=dbname, db='webpy', user='scott',
pw='tiger', pooling=pooling)
  File "./web/db.py", line 1028, in database
    return _databases[dbn](**params)
  File "./web/db.py", line 851, in __init__
    db_module = self.get_db_module()
  File "./web/db.py", line 867, in get_db_module
    import pgdb as db
ImportError: No module named pgdb

======================================================================
ERROR: testSession (session.DBSessionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/samwan/webpy/test/session.py", line 44, in setUp
    session = self.make_session(app)
  File "/Users/samwan/webpy/test/session.py", line 92, in make_session
    db = webtest.setup_database("postgres")
  File "/Users/samwan/webpy/test/webtest.py", line 14, in
setup_database
    db = web.database(dbn=dbname, db='webpy', user='scott',
pw='tiger', pooling=pooling)
  File "./web/db.py", line 1028, in database
    return _databases[dbn](**params)
  File "./web/db.py", line 851, in __init__
    db_module = self.get_db_module()
  File "./web/db.py", line 867, in get_db_module
    import pgdb as db
ImportError: No module named pgdb

======================================================================
FAIL: Doctest: web.template.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/doctest.py", line 2112, 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 "/System/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/doctest.py", line 1212, 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 "/System/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/doctest.py", line 1212, 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 "/System/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/doctest.py", line 1212, 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)


======================================================================
FAIL: testPooling (db.SqliteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/samwan/webpy/test/db.py", line 80, in testPooling
    self.assertEquals(db.ctx.db.__class__.__module__,
'DBUtils.PooledDB')
AssertionError: 'sqlite3' != 'DBUtils.PooledDB'

======================================================================
FAIL: testPooling (db.SqliteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/samwan/webpy/test/db.py", line 80, in testPooling
    self.assertEquals(db.ctx.db.__class__.__module__,
'DBUtils.PooledDB')
AssertionError: 'sqlite3' != 'DBUtils.PooledDB'

----------------------------------------------------------------------
Ran 116 tests in 3.743s

FAILED (failures=3, errors=4)
------ End shell session ------
--~--~---------~--~----~------------~-------~--~----~
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