> that code snippet is not complete (doesn't create a Session, doesn't add Post > to it, doesn't commit() or flush() the session but then removes it so I guess > maybe its a scoped_session, don't know) so I don't actually know what you're > doing. The test case below adds your assertion, uses the Session properly, > and works fine. The previous test I pasted also works (if I bothered to > write out a full test for it, you can be sure I ran it).
Sorry for lack of context - had to strip out test from a whole lot of other code - not an excuse I know. There must be some other issue here, I'll investigate further and let you know. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.