Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #15651
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Julian Gilbey <julian@d-and-j.net> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Pytest 8.x bug? "Permission denied: '/tmp/systemd-private-...-systemd-logind.service-.../__init__.py'" |
| Date | Wed, 27 Mar 2024 18:20:02 +0100 |
| Message-ID | <ImF6q-24Na-3@gated-at.bofh.it> (permalink) |
| References | <ImyxY-20ND-13@gated-at.bofh.it> <Imzkm-21k7-3@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Wed Mar 27 17:15:12 2024 |
| Old-Return-Path | <julian@d-and-j.net> |
| X-Amavis-Spam-Status | No, score=-7.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate:hard: -4.6 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/21658 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/ZgRP1_FCNrCQa4hU@d-and-j.net |
| Approved | robomod@news.nic.it |
| Lines | 29 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | debian-python@lists.debian.org |
| X-Original-Date | Wed, 27 Mar 2024 16:56:55 +0000 |
| X-Original-Message-ID | <ZgRP1_FCNrCQa4hU@d-and-j.net> |
| X-Original-References | <ZgPuElRlM_qLDyPI@d-and-j.net> <55DC04B1-6AC4-44D9-9229-87C10BCF0B1C@gaussglocke.de> |
| Xref | csiph.com linux.debian.maint.python:15651 |
Show key headers only | View raw
On Wed, Mar 27, 2024 at 11:36:55AM +0100, Timo Röhling wrote:
> Hi,
>
> Am 27. März 2024 10:59:46 MEZ schrieb Julian Gilbey <julian@d-and-j.net>:
> >I'm stymied by a pytest-related bug. I thought it was a bug in a
> >particular pytest plugin (pytest-order), but it's now shown up in
> >another pytest plugin as well, so I wonder if either there's a bug in
> >pytest 8.x or something subtle has changed that requires a
> >modification to the plugins. I couldn't see anything obvious on the
> >pytest changelog page, and the error message itself is mysterious to
> >me. The bug does not show with pytest 7.4.4, so it is certainly
> >related to the new pytest version.
> I wasn't able to pinpoint the cause yet, but I noticed that the failing sessions have "rootdir: /tmp" instead of the usual /tmp/autopkgtest-lxc.*/downtmp/autopkgtest_tmp/build
Ah, I think you've hit the nail on the head!!
https://github.com/pytest-dev/pytest/issues/11781
And then pytest looks for any __init__.py file it can find, including
in unreadable directories...
Unfortunately, changing the argument from str(tmpdir) to
f"--rootdir={tmpdir}" caused my computer to crash (CPU usage went
through the roof until the computer became unresponsive) - clearly
there's something not quite right here yet!!
Best wishes,
Julian
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Pytest 8.x bug? "Permission denied: '/tmp/systemd-private-...-systemd-logind.service-.../__init__.py'" Julian Gilbey <julian@d-and-j.net> - 2024-03-27 11:20 +0100
Re: Pytest 8.x bug? "Permission denied: '/tmp/systemd-private-...-systemd-logind.service-.../__init__.py'" Timo Röhling <timo@gaussglocke.de> - 2024-03-27 12:10 +0100
Re: Pytest 8.x bug? "Permission denied: '/tmp/systemd-private-...-systemd-logind.service-.../__init__.py'" Julian Gilbey <julian@d-and-j.net> - 2024-03-27 16:40 +0100
Re: Pytest 8.x bug? "Permission denied: '/tmp/systemd-private-...-systemd-logind.service-.../__init__.py'" Julian Gilbey <julian@d-and-j.net> - 2024-03-27 18:20 +0100
csiph-web