On Sunday 30 July 2006 13:58, Oleg Broytmann wrote: > On Wed, Jul 26, 2006 at 08:03:16AM +0300, Mircea Amarascu wrote: > > I've read the "Handling exceptions" topic on this mailing list > > (http://www.mail-archive.com/sqlobject-discuss%40lists.sourceforge.ne > >t/msg00975.html) and decided to take a step further and try to add a > > database exception hierarchy to > > SQLObject > > Can you also add some tests? For example, add a duplicate record > (key), catch an exception and test that the exception is really... what > should it be? IntegrityError? ProgrammingError?
According to the PEP it should be IntegrityError, and this is how SQLObject will raise it (MySQL and SQLite follow the PEP as well) > SQLObject's tests (based on py.test framework) allow one to limit > platforms the tests are running on, so you can limit your tests to > SQLite and MySQL. > > Oleg. -- Dan ------------------------------------------------------------------------- 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