File no-readline.patch of Package python-inline-snapshot
From 1040f3f5db5ddaf64d4178d9dd4cc53027316812 Mon Sep 17 00:00:00 2001
From: MeggyCal <MeggyCal@users.noreply.github.com>
Date: Tue, 27 May 2025 15:20:41 +0200
Subject: [PATCH] also accept ImportError
---
src/inline_snapshot/pytest_plugin.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/inline_snapshot/pytest_plugin.py b/src/inline_snapshot/pytest_plugin.py
index c6589997..d5d54dbc 100644
--- a/src/inline_snapshot/pytest_plugin.py
+++ b/src/inline_snapshot/pytest_plugin.py
@@ -37,8 +37,8 @@
# fixes #186
try:
import readline # noqa
- except ModuleNotFoundError: # pragma: no cover
- # should fix #189
+ except (ImportError, ModuleNotFoundError): # pragma: no cover
+ # should fix #189 and #245
pass