Deutsch English Français Italiano |
<mailman.45.1729839997.4695.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: c.buhtz@posteo.jp Newsgroups: comp.lang.python Subject: Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment Date: Fri, 25 Oct 2024 07:06:35 +0000 Lines: 21 Message-ID: <mailman.45.1729839997.4695.python-list@python.org> References: <4a13731716200669342338ae409e73ca@posteo.de> <36BEA5DD-D591-4D0E-B7CF-78609AA42B92@barrys-emacs.org> <95ec01236b917c5717c8ef6d2da8ffae@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de ckYK1kUyzVoXSsXGXRGuXAaQHWGDkLF0mAjE3qIdaaKw== Cancel-Lock: sha1:s6TotoEK0lKGa4vsp9qaA34LBVs= sha256:mdw6u0aVJvQIQCOf6WDXL4YIFHC2cfOEvkNfRkWNjaM= Return-Path: <c.buhtz@posteo.jp> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=posteo.jp header.i=@posteo.jp header.b=fa4XH3rN; dkim-adsp=pass; dkim-atps=neutral X-Spam-Status: OK 0.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:when': 0.07; 'tests': 0.07; 'fedora': 0.09; 'schrieb': 0.09; 'url-ip:140/8': 0.14; 'aspects.': 0.16; 'subject:() ': 0.16; 'subject:Fedora': 0.16; 'subject:fails': 0.16; 'subject:used': 0.16; 'url:test': 0.16; 'url-ip:140.82.121/24': 0.17; 'url-ip:140.82/16': 0.17; 'to:addr:python-list': 0.20; 'issue': 0.21; 'url:github': 0.23; 'received:de': 0.23; 'cannot': 0.25; 'brings': 0.26; 'do?': 0.26; 'but': 0.32; 'header:In-Reply-To:1': 0.34; 'mean': 0.34; 'trying': 0.35; 'file': 0.38; 'use': 0.39; 'explain': 0.40; 'your': 0.64; 'back': 0.66; '[1]': 0.67; 'right': 0.68; 'received:185': 0.71; 'relevant': 0.73; 'details.': 0.76; 'combination': 0.76; 'reply': 0.76; 'url:common': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.jp; s=2017; t=1729839995; bh=0TnhTRwgWrBSBylOq98ukaQsZS6/iSyDzZeBIg3eFF0=; h=MIME-Version:Date:From:To:Subject:Message-ID:Content-Type: Content-Transfer-Encoding:From; b=fa4XH3rNAEJjarq2ogJzEkqFrqtSlfCJ3hnlo9hn5OL64nfV8GelNWAVCtXTxyf5Q 1QwyHFvca7OufGT5FCr7w+zdJEAFYN0w4rl6HdW3PJR77Q8m195X72AenXKu5SJzOx Kn9xCLWPi4kNjk5SYOCkMKFSTSSp7u3VN7Md5TUcadZ2wRbU2rtYUICqdeOQaCZaX8 b1Dz4zT1hZEIMUzhdXTi1Tn4OXeV4yuyCjVCSXdoGoqi2JrYKjuH+wI5yqOPOSdxqF BqNB4IR6ApZqYVDNxgI6XQxelYbwwzgVIkbBBQ+RLVs8aKYEz4ykQkJPKI2qzO3Qzw tcsGTpz7hHWiQ== Mail-Followup-To: python-list@python.org In-Reply-To: <36BEA5DD-D591-4D0E-B7CF-78609AA42B92@barrys-emacs.org> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <95ec01236b917c5717c8ef6d2da8ffae@posteo.de> X-Mailman-Original-References: <4a13731716200669342338ae409e73ca@posteo.de> <36BEA5DD-D591-4D0E-B7CF-78609AA42B92@barrys-emacs.org> Bytes: 4278 Hello Barry, thank you for your reply and clarifying the Fedora aspects. Am 25.10.2024 00:44 schrieb Barry: > What do you mean by the real file sustem? > > You cannot write to the /usr file system. Is that what your tests do? > If so that needs changing. Asking the right questions brings up to important details. While I was writing and trying to explain that the relevant test does use ""tempfile.TemporaryDirectory" as a context, I realized that "PyFakeFS" is used in the back [1]. But that makes me wonder. On a "regular" system all tests are running. So the issue might exist because of a combination of 3 factors: shutil.rmtree(), PyFakeFS in a chroot/mock build environment. [1] -- <https://github.com/bit-team/backintime/blob/c1d042ab67b9e117ac53e944518a0f4292fa075b/common/test/test_uniquenessset.py#L45>