Skip known failing python@2 test on macOS (#5616)

* Skip known failing python@2 test on macOS

* Condition failing import ctypes test better
This commit is contained in:
Felipe Santos 2024-03-16 18:38:02 -03:00 committed by GitHub
parent 0541c84c11
commit 08128acc99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -228,8 +228,8 @@ build:
- bin/pydoc{{version.marketing}} - bin/pydoc{{version.marketing}}
- bin/python{{version.marketing}}-config - bin/python{{version.marketing}}-config
CPPFLAGS: -I{{ deps.zlib.net.prefix }}/include CPPFLAGS: ${CPPFLAGS:+$CPPFLAGS }-I{{ deps.zlib.net.prefix }}/include
LDFLAGS: -L{{ deps.zlib.net.prefix }}/lib LDFLAGS: ${LDFLAGS:+$LDFLAGS }-L{{ deps.zlib.net.prefix }}/lib
OPENSSL_INCLUDES: ${{ deps.openssl.org.prefix }}/include OPENSSL_INCLUDES: ${{ deps.openssl.org.prefix }}/include
OPENSSL_LDFLAGS: -L{{ deps.openssl.org.prefix }}/lib OPENSSL_LDFLAGS: -L{{ deps.openssl.org.prefix }}/lib
PYTHON2PATCHES: PYTHON2PATCHES:
@ -247,6 +247,8 @@ build:
- https://raw.githubusercontent.com/macports/macports-ports/master/lang/python27/files/openssl_ver.patch - https://raw.githubusercontent.com/macports/macports-ports/master/lang/python27/files/openssl_ver.patch
test: test:
dependencies:
crates.io/semverator: '*'
script: script:
# Check if sqlite is ok, because we build with --enable-loadable-sqlite-extensions # Check if sqlite is ok, because we build with --enable-loadable-sqlite-extensions
# and it can occur that building sqlite silently fails if OSX's sqlite is used. # and it can occur that building sqlite silently fails if OSX's sqlite is used.
@ -260,10 +262,16 @@ test:
if: ^3.8 if: ^3.8
# Check if some other modules import. Then the linked libs are working. # Check if some other modules import. Then the linked libs are working.
- python -v -c "import _ctypes"
# - python -c "import _decimal" #FIXME
- python -c "import zlib" - python -c "import zlib"
- python -c "import pyexpat" - python -c "import pyexpat"
# - python -c "import _decimal" # FIXME
# FIXME: darwin <3.6.4 fails
- run: |
if test "{{hw.platform}}" = "linux"; then
python -v -c "import _ctypes"
elif semverator gt {{version}} 3.6.3; then
python -v -c "import _ctypes"
fi
# Verify that the selected DBM interface works # Verify that the selected DBM interface works
# FIXME: doen't work # FIXME: doen't work