From a220f6a417c3568220596916ac9cac668d434844 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Wed, 15 Oct 2025 18:28:43 +0100 Subject: [PATCH] Fix stdlib stubtest flakes --- stdlib/@tests/stubtest_allowlists/darwin-py313.txt | 7 +++++++ stdlib/@tests/stubtest_allowlists/linux-py39.txt | 10 +++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/stdlib/@tests/stubtest_allowlists/darwin-py313.txt b/stdlib/@tests/stubtest_allowlists/darwin-py313.txt index bb7f4bba4c2f..8e59e29c1ecb 100644 --- a/stdlib/@tests/stubtest_allowlists/darwin-py313.txt +++ b/stdlib/@tests/stubtest_allowlists/darwin-py313.txt @@ -3,3 +3,10 @@ # ======= (mmap.MAP_32BIT)? # Exists locally on MacOS but not on GitHub + +# ================ +# Unclear problems +# ================ + +# Added in 3.11.1, flagged by stubtest on Python < 3.14 for unknown reasons +errno.ENOTCAPABLE diff --git a/stdlib/@tests/stubtest_allowlists/linux-py39.txt b/stdlib/@tests/stubtest_allowlists/linux-py39.txt index 1a2478f6a5e0..b92f8267f499 100644 --- a/stdlib/@tests/stubtest_allowlists/linux-py39.txt +++ b/stdlib/@tests/stubtest_allowlists/linux-py39.txt @@ -6,11 +6,11 @@ # while being inspected by stubtest. Fixed in Python 3.10. select.epoll.register -# According to stubtest, these are not present at runtime, starting with -# Python 3.9.24. Which is not true. -_frozen_importlib_external.PathFinder.find_distributions -importlib._bootstrap_external.PathFinder.find_distributions -importlib.machinery.PathFinder.find_distributions +# According to stubtest, these are sometimes not present at runtime, starting +# with Python 3.9.24. Which is not true. +(_frozen_importlib_external.PathFinder.find_distributions)? +(importlib._bootstrap_external.PathFinder.find_distributions)? +(importlib.machinery.PathFinder.find_distributions)? # =============================================================