SAWarnings when running tests?

476 views
Skip to first unread message

Daniel Nouri

unread,
Apr 21, 2013, 2:22:09 PM4/21/13
to Kotti mailing list
What's up with these warnings when running tests on master. Anyone
have an idea where they come from?


$ bin/py.test -n2
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- pytest-2.3.4
plugins: Kotti, xdist, pep8, cov, cache
gw0 I / gw1 I
gw0 [381] / gw1 [381]

scheduling tests via LoadScheduling
..................................../home/daniel/co/Kotti/local/lib/python2.7/site-packages/SQLAlchemy-0.8.0-py2.7-linux-x86_64.egg/sqlalchemy/orm/unitofwork.py:39:
SAWarning: Usage of the 'collection append' operation is not currently
supported within the execution stage of the flush process. Results may
not be consistent. Consider using alternative event listeners or
connection-level operations instead.
sess._flush_warning("collection append")
/home/daniel/co/Kotti/local/lib/python2.7/site-packages/SQLAlchemy-0.8.0-py2.7-linux-x86_64.egg/sqlalchemy/orm/session.py:1390:
SAWarning: Usage of the 'Session.add()' operation is not currently
supported within the execution stage of the flush process. Results may
not be consistent. Consider using alternative event listeners or
connection-level operations instead.
self._flush_warning("Session.add()")
../home/daniel/co/Kotti/local/lib/python2.7/site-packages/SQLAlchemy-0.8.0-py2.7-linux-x86_64.egg/sqlalchemy/orm/unitofwork.py:39:
SAWarning: Usage of the 'collection append' operation is not currently
supported within the execution stage of the flush process. Results may
not be consistent. Consider using alternative event listeners or
connection-level operations instead.
sess._flush_warning("collection append")
/home/daniel/co/Kotti/local/lib/python2.7/site-packages/SQLAlchemy-0.8.0-py2.7-linux-x86_64.egg/sqlalchemy/orm/session.py:1390:
SAWarning: Usage of the 'Session.add()' operation is not currently
supported within the execution stage of the flush process. Results may
not be consistent. Consider using alternative event listeners or
connection-level operations instead.
self._flush_warning("Session.add()")
.......................................................................................................................................................................................................................................................................................................................................................

Marco Scheidhuber

unread,
Apr 22, 2013, 3:49:35 AM4/22/13
to ko...@googlegroups.com, Daniel Nouri
On 04/21/2013 08:22 PM, Daniel Nouri wrote:
> What's up with these warnings when running tests on master. Anyone
> have an idea where they come from?
didn't know why these occur, but you don't get the warnings with
sqlalchemy version 0.7.9 as pinned in Kottis requirements.txt. When
you upgrade to 0.8.0, as I see in your venv paths, the warnings pops
up.

Marco

Daniel Nouri

unread,
Apr 22, 2013, 6:07:58 AM4/22/13
to Marco Scheidhuber, Kotti mailing list
That's interesting. Need to figure out which code path is triggering
this and why. I've created an issue:
https://github.com/Kotti/Kotti/issues/222


Daniel
Reply all
Reply to author
Forward
0 new messages