it something to do with that expects thing...
just do a x = str(b) before session.clear(), breaks it all.

On Monday 24 September 2007 18:57:36 Michael Bayer wrote:
> somethings weird.  if i take out your expects/me.query stuff (which
> remains impossible to read), and do this :
>
>          session.clear()
>          for o in session.query(A):
>              print str(o)
>
>
> I get this:
>
> C( db_id=1 linkA=None linkC=>B( id=<notset> name=ben ) dataC=mc
> name=cc )
> A( db_id=2 linkA=>B( id=<notset> name=ben ) name=anna )
> B( db_id=3 linkB=>C( id=<notset> name=cc ) linkA=None name=ben
> dataB=gun )
>
>
> which is correct.  im trying all sorts of things and I cant get the
> linkB=>B condition the test case claims.
>
> but this expects string:
>
> dict( klas= A, table= table_A, oid= a.db_id, exp_single= str(a),
>                      exp_multi = [ str(a), str(b), str(c) ]),
>
> returns the wrong result.  what am i doing wrong ?
>
> On Sep 24, 2007, at 10:53 AM, [EMAIL PROTECTED] wrote:
> >> scratch that, i found one, try r3512.
> >
> > this one is ok now.
> >
> > Another one.
> > - the A-B-C all-cases works 100% on 0.3.xx but some cases fail on
> > 0.4.anything.
> > Attached is one ~random case of about 168 similar ones - t1.py.
> >
> > ciao
> >
> >
> > <sa_gentestbase.py>
> > <t1.py>
>
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to