We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec011d4 commit 85c19d2Copy full SHA for 85c19d2
src/_pytest/capture.py
@@ -91,7 +91,10 @@ def _readline_workaround() -> None:
91
workaround consists of importing readline here, so we already worked around
92
the issue by the time we could check if we need to.
93
"""
94
- import readline # noqa: F401
+ try:
95
+ import readline # noqa: F401
96
+ except ImportError:
97
+ pass
98
99
100
def _windowsconsoleio_workaround(stream: TextIO) -> None:
0 commit comments