2011/5/26 Jasper Lievisse Adriaanse <jas...@openbsd.org>:
> On Sat, May 21, 2011 at 09:34:17PM +0800, wen heping wrote:
>> Hi,
>>
>>     Here I resubmitt the update of databases/py-sqlalchemy to 0.7.0.
>>
>>     Tested OK on Loongson and regress test OK too.
>>
>>      patches/patch-setup_py is no more needed.
>>
>>      Comments? OK ?
>>
>> wen
>>
>>
>> 2011/4/7 Will Maier <willma...@ml1.net>:
>> > Hi Wen-
>> >
>> > On Wed, Apr 06, 2011 at 09:50:56PM +0800, wen heping wrote:
>> >> ??Here's an update of databases/py-sqlalchemy to 0.6.6
>> >>
>> >> ??Tested on loongson OK. .
>> > ?? ?? ?? ?? ?? ?? ^^^^^^^^
>> > Awesome. ;)
>> >
>> > The diff looks good to me; I'll test it a bit and then commit.
>> >
>> > Thanks!
>> >
>> > --
>> >
>> > Will Maier
>> > http://will.m.aier.us/
>> >
> Could you please have a look at the failing regress tests for py-exlier?


Hi,

   You can use this patch to fix the regress fail of databases/py-elixir:

--- test_options.py.orig        Thu May 26 22:36:39 2011
+++ test_options.py     Thu May 26 22:37:17 2011
@@ -4,7 +4,7 @@

 from sqlalchemy import UniqueConstraint, create_engine, Column
 from sqlalchemy.orm import scoped_session, sessionmaker
-from sqlalchemy.exceptions import SQLError, ConcurrentModificationError
+from sqlalchemy.exceptions import DBAPIError, ConcurrentModificationError
 from elixir import *

 class TestOptions(object):
@@ -225,7 +225,7 @@
         raised = False
         try:
             session.commit()
-        except SQLError:
+        except DBAPIError:
             raised = True

         assert raised
@@ -258,7 +258,7 @@
         raised = False
         try:
             session.commit()
-        except SQLError:
+        except DBAPIError:
             raised = True

         assert raised


    But I shall point:
    1) py-elixir fail regress was not caused by the update of py-sqlalchemy,
from sqlalchemy-0.6.0, py-elixir regress fail.
     2) now there is py-elixir-0.7.1(0.7.0 in OpenBSD portstree),
which removed these regress test file
     3) py-elixir had been inactive for about 2 years.

      BTW, Jasper@, would you commit p5-POE related ports which you
did not finished from last commit? Some of them had newer version.


Regards,
wen

Reply via email to