Path: csiph.com!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Ole Streicher Newsgroups: linux.debian.maint.python Subject: platform.machine() on salsa i386 build? Date: Sat, 30 Oct 2021 14:50:02 +0200 Message-ID: X-Mailbox-Line: From debian-python-request@lists.debian.org Sat Oct 30 12:45:10 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.332 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.249, KHOP_HELO_FCRDNS=0.399, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 X-Greylist: delayed 526 seconds by postgrey-1.36 at bendel; Sat, 30 Oct 2021 12:29:52 UTC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Lines: 26 X-Mailing-List: archive/latest/19467 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/87fssi3drb.fsf@poch Approved: robomod@news.nic.it Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 30 Oct 2021 14:20:40 +0200 X-Original-Message-ID: <87fssi3drb.fsf@poch> Xref: csiph.com linux.debian.maint.python:13667 Hi, I have a package (pyraf) where I need to switch off some tests for i386 (but not for other 32-bit platforms). I do this by import platform is_i386 = platform.machine() in ('i386', 'i486', 'i586', 'i686') [...] @pytest.mark.skipif(is_i386, reason='diff is not identical on i386') def test_gki_single_prow(): https://salsa.debian.org/debian-astro-team/pyraf/-/blob/master/debian/patches/Skip-tests-that-are-too-tight-for-i386.patch However, on Salsa this fails; and it appears that this test is ignored. Further investigation gave me that there -- during the regular (pybuild) test -- platform.machine() gives "x86_64", despite of the 32-bit platform. https://salsa.debian.org/debian-astro-team/pyraf/-/jobs/2130878#L2062 How can one find out the correct machine here? Best regards Ole