Re: Python 2.7.12 + tox + PostgreSQL

Ian Cordasco <[email protected]> Fri, 26 Aug 2016 10:42:04 -0500
Newsgroups gmane.comp.python.sqlobject
Message-ID <CAN-Kwu1s=5=Zfrg0o9xEWA9zqZLn2es3M0+sk4mA8m7zOzVA+Q@mail.gmail.com>
--===============4844909044002310531==
Content-Type: multipart/alternative; boundary=001a1149aa663447d1053afb5b4a

--001a1149aa663447d1053afb5b4a
Content-Type: text/plain; charset=UTF-8

On Aug 25, 2016 4:19 PM, "Oleg Broytman" <[email protected]> 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.

--001a1149aa663447d1053afb5b4a
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Aug 25, 2016 4:19 PM, &quot;Oleg Broytman&quot; &lt;<a =
href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt; wro=
te:<br type=3D"attribution"><div class=3D"gmail_extra"><div class=3D"gmail_=
quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex">Hi, All!<br>
<br>
=C2=A0 =C2=A0Recently tests started to fail both at Travis and Circle, but =
only<br>
with Postgres. Initially I couldn&#39;t reproduce the problem locally but<b=
r>
after a dozen of experiments I got it: the problem manifests itself<br>
only with Python 2.7.12 + tox + PostgreSQL. I have to install Python<br>
2.7.12 and tox to reproduce it locally (I have Debian with Python 2.7.9<br>
and I usually don&#39;t use tox - I run py.test directly).<br>
<br>
=C2=A0 =C2=A0Somehow I managed to fix tests by changing test order - I expl=
icitly<br>
listed tests directories with &#39;tests&#39; at the top of the other dirs.=
 Now<br>
tests passed locally and at both CIs.<br>
<br>
=C2=A0 =C2=A0I understand neither the problem nor the solution. :-( Any ide=
a?<br></blockquote><div><br></div><div>Can you share a link to the reorderi=
ng that fixed this? I won&#39;t pretend to understand it either, but there =
is typically a difference between how tox runs tests and how you might be r=
unning them.<br><br></div><div>tox will install sqlobject first and then ru=
n the tests against that installed version (ideally). If you just run py.te=
st directly, it might not be installed and will be running against the loca=
l copy in git. Something could be wrong about how sqlobject is being packag=
ed. <br></div></div></div>
</div>

--001a1149aa663447d1053afb5b4a--


--===============4844909044002310531==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============4844909044002310531==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

--===============4844909044002310531==--