From d3faa5a8b05bec9256aef29fedc800a59af2d902 Mon Sep 17 00:00:00 2001 From: David Salvisberg Date: Wed, 15 May 2024 18:07:55 +0200 Subject: [PATCH] uWSGI: Makes stubtest_allowlist_darwin more resilient against CI flakyness (#11819) --- stubs/pyaudio/METADATA.toml | 4 ++-- stubs/uWSGI/@tests/stubtest_allowlist_darwin.txt | 5 +++++ stubs/uWSGI/METADATA.toml | 5 ++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/stubs/pyaudio/METADATA.toml b/stubs/pyaudio/METADATA.toml index c39576366..68f013087 100644 --- a/stubs/pyaudio/METADATA.toml +++ b/stubs/pyaudio/METADATA.toml @@ -4,6 +4,6 @@ version = "0.2.*" [tool.stubtest] # linux and win32 are equivalent -platforms = ["linux"] +platforms = ["darwin", "linux"] apt_dependencies = ["portaudio19-dev"] -# brew_dependencies = ["portaudio"] +brew_dependencies = ["portaudio"] diff --git a/stubs/uWSGI/@tests/stubtest_allowlist_darwin.txt b/stubs/uWSGI/@tests/stubtest_allowlist_darwin.txt index 6fa558c9f..875908e1c 100644 --- a/stubs/uWSGI/@tests/stubtest_allowlist_darwin.txt +++ b/stubs/uWSGI/@tests/stubtest_allowlist_darwin.txt @@ -9,3 +9,8 @@ uwsgi.SymbolsImporter uwsgi.SymbolsZipImporter uwsgi.ZipImporter +# These may or may not exist depending on how the CI is feeling +# at any given point in time +(uwsgi\.i_am_the_lord)? +(uwsgi\.lord_scroll)? +(uwsgi\.scrolls)? diff --git a/stubs/uWSGI/METADATA.toml b/stubs/uWSGI/METADATA.toml index 66fe1013f..9807d0b14 100644 --- a/stubs/uWSGI/METADATA.toml +++ b/stubs/uWSGI/METADATA.toml @@ -9,4 +9,7 @@ extra_description = """\ """ [tool.stubtest] -platforms = ["linux"] +# Run stubtest on MacOS as well, to check that the +# uWSGI-specific parts of stubtest_third_party.py +# also work there +platforms = ["linux", "darwin"]