Bug#1013700: Strangely rare pytest 7.x bug report

2022-07-05 Thread Carles Pina i Estany
Hi, On Jul/04/2022, Julian Gilbey wrote: > It is utterly, utterly bizarre. But I think I've found the problem. [...] > Thanks for your help! You're welcome! Cheers, > > Best wishes, > >Julian > > On Mon, Jul 04, 2022 at 08:39:32PM +0100, Carles Pina i Estany wrote: > > > > Hi

Bug#1013700: Strangely rare pytest 7.x bug report

2022-07-04 Thread Julian Gilbey
Hi Carles, It is utterly, utterly bizarre. But I think I've found the problem. There's a pytest.ini file in the package, but it's not copied into the test directory. So when pytest is run in the .pybuild directory, it climbs all the way back up the directory tree to the python-qtpy-2.1.0 until

Bug#1013700: Strangely rare pytest 7.x bug report

2022-07-04 Thread Carles Pina i Estany
Hi Julian, On Jul/04/2022, Julian Gilbey wrote: > Hi Carles, > > Thanks for your thoughts! Yes, indeed that seems to be the issue. > But what I don't understand is why the import is turned into > .pybuild.cpython3_3.9_qtpy.build.qtpy.tests and not just qtpy.tests or I see how pytest does it

Bug#1013700: Strangely rare pytest 7.x bug report

2022-07-04 Thread Julian Gilbey
Hi Carles, Thanks for your thoughts! Yes, indeed that seems to be the issue. But what I don't understand is why the import is turned into .pybuild.cpython3_3.9_qtpy.build.qtpy.tests and not just qtpy.tests or a longer path, and why only this package fails in this way. Perhaps this is the only

Bug#1013700: Strangely rare pytest 7.x bug report

2022-07-04 Thread Carles Pina i Estany
Hi, I'm a lurker of debian-pyt...@lists.debian.org but seeing Python+Qt I wanted to have a look. I don't have a solution (I might look more another time if time permits) but I might have something that might help someone who knows the tools better. I am not familiar with Python Debian

Bug#1013700: Strangely rare pytest 7.x bug report

2022-07-04 Thread Julian Gilbey
Dear all, I wonder whether you might have any clue about https://bugs.debian.org/1013700 I have mostly worked out the "cause" of the bug, but I haven't quite got to the bottom of it. When running the command PYTHONPATH=. python3.10 -m pytest qtpy/tests in the directory