Skip to content

Commit 11c7821

Browse files
authored
Fix stdlib stubtest flakes (#14886)
1 parent d119712 commit 11c7821

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

stdlib/@tests/stubtest_allowlists/darwin-py313.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@
33
# =======
44

55
(mmap.MAP_32BIT)? # Exists locally on MacOS but not on GitHub
6+
7+
# ================
8+
# Unclear problems
9+
# ================
10+
11+
# Added in 3.11.1, flagged by stubtest on Python < 3.14 for unknown reasons
12+
errno.ENOTCAPABLE

stdlib/@tests/stubtest_allowlists/linux-py39.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
# while being inspected by stubtest. Fixed in Python 3.10.
77
select.epoll.register
88

9-
# According to stubtest, these are not present at runtime, starting with
10-
# Python 3.9.24. Which is not true.
11-
_frozen_importlib_external.PathFinder.find_distributions
12-
importlib._bootstrap_external.PathFinder.find_distributions
13-
importlib.machinery.PathFinder.find_distributions
9+
# According to stubtest, these are sometimes not present at runtime, starting
10+
# with Python 3.9.24. Which is not true.
11+
(_frozen_importlib_external.PathFinder.find_distributions)?
12+
(importlib._bootstrap_external.PathFinder.find_distributions)?
13+
(importlib.machinery.PathFinder.find_distributions)?
1414

1515

1616
# =============================================================

0 commit comments

Comments
 (0)