kw['autoflush'] = autoflush
kw['autocommit'] = autocommit
kw['expire_on_commit'] = expire_on_commit
- kw['info'] = info
+ if info is not None:
+ kw['info'] = info
self.kw = kw
# make our own subclass of the given class, so that
# events can be associated with it specifically.
s3 = maker()
eq_(s3.info, {"global": True, "s1": 5})
+ maker2 = sessionmaker()
+ s4 = maker2(info={'s4': 8})
+ eq_(s4.info, {'s4': 8})
+
@testing.requires.independent_connections
@engines.close_open_connections
def test_autoflush(self):