Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joonas
Created February 1, 2013 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joonas/13d974c34c9283fb0d2d to your computer and use it in GitHub Desktop.
Save joonas/13d974c34c9283fb0d2d to your computer and use it in GitHub Desktop.
==============================================================================
./env/bin/swaddle tests/env ./env/bin/python ./gittip/testing/__init__.py
./env/bin/swaddle tests/env ./env/bin/nosetests ./tests/
..........................................................................................................E..................................................................
======================================================================
ERROR: test_anonymous_gets_404 (test_participant_id_json.TestParticipantIdJson)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/joonas/code/repos/python/rummik/tests/test_participant_id_json.py", line 31, in test_anonymous_gets_404
response = self.change_id("bob", user=None)
File "/Users/joonas/code/repos/python/rummik/tests/test_participant_id_json.py", line 10, in change_id
self.make_participant('alice')
File "/Users/joonas/code/repos/python/rummik/gittip/testing/__init__.py", line 70, in make_participant
self.session.commit()
File "/Users/joonas/code/repos/python/rummik/env/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 149, in do
return getattr(self.registry(), name)(*args, **kwargs)
File "/Users/joonas/code/repos/python/rummik/env/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 693, in commit
self.transaction.commit()
File "/Users/joonas/code/repos/python/rummik/env/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 332, in commit
self._prepare_impl()
File "/Users/joonas/code/repos/python/rummik/env/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 311, in _prepare_impl
self.session.flush()
File "/Users/joonas/code/repos/python/rummik/env/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1788, in flush
self._flush(objects)
File "/Users/joonas/code/repos/python/rummik/env/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1870, in _flush
flush_context.execute()
File "/Users/joonas/code/repos/python/rummik/env/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 372, in execute
rec.execute(self)
File "/Users/joonas/code/repos/python/rummik/env/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 525, in execute
uow
File "/Users/joonas/code/repos/python/rummik/env/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 44, in save_obj
uowtransaction)
File "/Users/joonas/code/repos/python/rummik/env/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 166, in _organize_states_for_save
state_str(existing)))
FlushError: New instance <Participant at 0x102dc8810> with identity key (<class 'gittip.models.participant.Participant'>, ('alice',)) conflicts with persistent instance <Participant at 0x102dbb690>
----------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment