TrivialFix: Do not use synchronous_reader argument

While running the following was observed in the captured stderr:

neutron/tests/unit/testlib_api.py:104: DeprecationWarning: Using the
'synchronous_reader' argument is deprecated: argument value is
propagated from the parent _TransactionFactory
      synchronous_reader=True)

I simply removed the argument.

The parent ref is here and defaults to True:
https://github.com/openstack/oslo.db/blob/master/oslo_db/sqlalchemy/enginefacade.py#L160

TrivialFix

Change-Id: Ic1744d97edb69b0f806aea7f2cde0b89b6bfbce1
This commit is contained in:
Trevor McCasland 2017-03-10 09:51:49 -06:00
parent b8f3abeea3
commit a51a6e7fcb
1 changed files with 1 additions and 2 deletions

View File

@ -100,8 +100,7 @@ class SqlFixture(fixtures.Fixture):
self.sessionmaker = session.get_maker(engine)
self.enginefacade_factory = enginefacade._TestTransactionFactory(
self.engine, self.sessionmaker, apply_global=False,
synchronous_reader=True)
self.engine, self.sessionmaker, apply_global=False)
_restore_factory = db_api.context_manager._root_factory