Skip to content

Commit

Permalink
Remove references to deprecated modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Nov 20, 2023
1 parent 0f1635d commit 39e0167
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_bootstrap_modules():


def test_stdlib_modules():
"All the stdlib modules exist"
"All the stdlib binary modules exist"
missing = []
all_modules = [
"_asyncio",
Expand Down Expand Up @@ -95,9 +95,6 @@ def test_stdlib_modules():
"syslog",
"termios",
"unicodedata",
# Scheduled for deprecation
"_crypt",
"audioop",
]

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

# Modules removed in 3.13
if sys.version_info < (3, 13):
all_modules.extend(
[
"_crypt",
"audioop",
]
)

# Modules that do not exist on Android
if hasattr(sys, "getandroidapilevel"):
all_modules.remove("grp")
Expand Down

0 comments on commit 39e0167

Please sign in to comment.