Skip to content

Commit 5bc2e91

Browse files
authored
Change readline module handling on macOS
Raise ImportError for readline module on macOS instead of logging an error.
1 parent 684734c commit 5bc2e91

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Tools/build/check_extension_modules.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,7 @@ def check_module_import(self, modinfo: ModuleInfo) -> None:
480480

481481
# skips readline module on macOS (temporary fix)
482482
if sys.platform == "darwin" and modinfo.name == "readline":
483-
logger.error("Skipping readline module for macOS")
484-
return
483+
raise ImportError("Skipping readline module for macOS")
485484

486485
try:
487486
with warnings.catch_warnings():

0 commit comments

Comments
 (0)