From: Mike Bayer Date: Thu, 6 Aug 2009 20:17:48 +0000 (+0000) Subject: merged r6248 X-Git-Tag: rel_0_6_6~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c77b4d4ef1c776b6196e95da49a0b9b2030d5155;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git merged r6248 --- diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index b2eaed1e77..0a0b0ff0ca 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -1064,6 +1064,7 @@ class Connection(Connectable): if context.compiled: context.post_exec() + if context.isinsert and not context.executemany: context.post_insert() diff --git a/test/ex/test_examples.py b/test/ex/test_examples.py index fe2dd14c75..7724f90a47 100644 --- a/test/ex/test_examples.py +++ b/test/ex/test_examples.py @@ -40,8 +40,12 @@ def check_import(module): class ExamplesTest(TestBase): - @testing.crashes('+zxjdbc', 'FIXME: examples have hard dependency on sqlite') + # TODO: ensure examples are actually run regardless of + # check for "__main__", perhaps standardizing the format of all examples. + # ensure that examples with external dependencies are not run if those dependencies are + # not present (i.e. elementtree, postgis) def test_examples(self): - for module in find_modules(): - check_import.description = module - yield check_import, module + pass + #for module in find_modules(): + # check_import.description = module + # yield check_import, module