Skip to content

Commit 39e0167

Browse files
committed
Remove references to deprecated modules.
1 parent 0f1635d commit 39e0167

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/test_common.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_bootstrap_modules():
5757

5858

5959
def test_stdlib_modules():
60-
"All the stdlib modules exist"
60+
"All the stdlib binary modules exist"
6161
missing = []
6262
all_modules = [
6363
"_asyncio",
@@ -95,9 +95,6 @@ def test_stdlib_modules():
9595
"syslog",
9696
"termios",
9797
"unicodedata",
98-
# Scheduled for deprecation
99-
"_crypt",
100-
"audioop",
10198
]
10299

103100
# Modules added in 3.8
@@ -107,6 +104,15 @@ def test_stdlib_modules():
107104
if sys.version_info >= (3, 11):
108105
all_modules.extend(["_typing"])
109106

107+
# Modules removed in 3.13
108+
if sys.version_info < (3, 13):
109+
all_modules.extend(
110+
[
111+
"_crypt",
112+
"audioop",
113+
]
114+
)
115+
110116
# Modules that do not exist on Android
111117
if hasattr(sys, "getandroidapilevel"):
112118
all_modules.remove("grp")

0 commit comments

Comments
 (0)