> I've cloned the master from github (git clone
> git://github.com/webpy/webpy.git) and ran the test suite with the
> following results. They just seem to result from ignoring the absence
> of the postgres driver and something about sqlite. Unicode errors are
> gone :)
All the tests in web.py 0.31 pass on my mac but some of them fail on
linux. I guess it is because of different locale settings.
I didn't realize that before releasing 0.31. Now I have a cronjob
which runs all the tests on a linux box and sends me a status email.
> ======================================================================
> ERROR: testBadSessionId (session.DBSessionTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> ...
> ImportError: Unable to import psycopg2 or psycopg or pgdb
>
> ======================================================================
> ERROR: testParallelSessions (session.DBSessionTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> ...
> ImportError: Unable to import psycopg2 or psycopg or pgdb
>
> ======================================================================
> ERROR: testSession (session.DBSessionTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> ...
> ImportError: Unable to import psycopg2 or psycopg or pgdb
I don't think this is an issue. session test requires postgres.
Trying changing
db = webtest.setup_database("postgres")
with
db = webtest.setup_database("sqlite")
to make the tests run on a sqlite database.
> ======================================================================
> FAIL: testPooling (db.SqliteTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/Users/samwan/webpy/test/db.py", line 81, in testPooling
> self.assertEquals(db.ctx.db.__class__.__module__, 'DBUtils.PooledDB')
> AssertionError: 'sqlite3' != 'DBUtils.PooledDB'
Again, testPooling requires DBUtils module to be installed.
I added a patch to ignore testPooling if DBUtils module is not available.
Anand
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---