At least I wasn't messing up something basic elsewhere...

>    Please investigate the reasons, look at logs...

svn co http://svn.colorstudy.com/SQLObject/tags/0.7.1 SQLObject
py.test -D "sqlite:///tmp/sqlite.data" -x

Exception is thrown here:

     def convert_date(val):
E       return datetime.date(*map(int, val.split("-")))
 >       ValueError: invalid literal for int(): 26 12:29:12

[/.../lib/python2.4/site-packages/pysqlite2/dbapi2.py:63]

Due to this test:

     def test_mxDateTime():
         setupClass(DateTime2)
         _now = now()
 >       dt2 = DateTime2(col1=_now, col2=_now, col3=Time(_now.hour, 
_now.minute, int(_now.second)))

[/.../SQLObject/sqlobject/tests/test_datetime.py:60]

SQLite is version 3.3.7.

pysqlite is version 2.3.2.

There is a difference (apparently) between

 > foreach a (tests/test_*.py)
 >  py.test -D "sqlite:///tmp/sqlite.data" $a
 > end

and

 > py.test -D "sqlite:///tmp/sqlite.data"

Using the first method I get only the above failure, while using the 
second, I get 37 failures.

>    BTW, I have developed a suite of shell scripts to run a test, a number
> of tests or a the entire test suite at once - if you are interested I can
> send it to you.

That would be helpful. I'm finding the learning curve pretty steep.

nathan

-- 
Nathan Edwards, Ph.D.
Center for Bioinformatics and Computational Biology
3119 Biomolecular Sciences Bldg. #296
University of Maryland, College Park, MD 20742
Phone: +1 301-405-9901
Email: [EMAIL PROTECTED]
WWWeb: http://www.umiacs.umd.edu/~nedwards

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to