On Aug 25, 2016 4:19 PM, "Oleg Broytman" <p...@phdru.name> wrote:

> Hi, All!
>
>    Recently tests started to fail both at Travis and Circle, but only
> with Postgres. Initially I couldn't reproduce the problem locally but
> after a dozen of experiments I got it: the problem manifests itself
> only with Python 2.7.12 + tox + PostgreSQL. I have to install Python
> 2.7.12 and tox to reproduce it locally (I have Debian with Python 2.7.9
> and I usually don't use tox - I run py.test directly).
>
>    Somehow I managed to fix tests by changing test order - I explicitly
> listed tests directories with 'tests' at the top of the other dirs. Now
> tests passed locally and at both CIs.
>
>    I understand neither the problem nor the solution. :-( Any idea?
>

Can you share a link to the reordering that fixed this? I won't pretend to
understand it either, but there is typically a difference between how tox
runs tests and how you might be running them.

tox will install sqlobject first and then run the tests against that
installed version (ideally). If you just run py.test directly, it might not
be installed and will be running against the local copy in git. Something
could be wrong about how sqlobject is being packaged.
------------------------------------------------------------------------------
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to