Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #13667
| From | Ole Streicher <olebole@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | platform.machine() on salsa i386 build? |
| Date | 2021-10-30 14:50 +0200 |
| Message-ID | <DdVY6-22h-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread
platform.machine() on salsa i386 build? Ole Streicher <olebole@debian.org> - 2021-10-30 14:50 +0200
Re: platform.machine() on salsa i386 build? Andrey Rahmatullin <wrar@debian.org> - 2021-10-30 20:50 +0200
Re: platform.machine() on salsa i386 build? Thomas Goirand <zigo@debian.org> - 2021-10-31 02:20 +0200
Re: platform.machine() on salsa i386 build? Nilesh Patra <nilesh@nileshpatra.info> - 2021-10-30 21:30 +0200
Re: platform.machine() on salsa i386 build? Ole Streicher <olebole@debian.org> - 2021-10-30 23:40 +0200
Re: platform.machine() on salsa i386 build? Stefano Rivera <stefanor@debian.org> - 2021-10-30 21:50 +0200
csiph-web