From: Jochen Sprickerhof <jspricke@debian.org>
Date: Sat, 17 Dec 2022 15:16:10 +0100
Subject: Workaround broken stack_data.__version__ in testing

---
 IPython/core/tests/test_iplib.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/IPython/core/tests/test_iplib.py b/IPython/core/tests/test_iplib.py
index a264df5..9a7e3ea 100644
--- a/IPython/core/tests/test_iplib.py
+++ b/IPython/core/tests/test_iplib.py
@@ -2,7 +2,10 @@
 """
 import stack_data
 
-SV_VERSION = tuple([int(x) for x in stack_data.__version__.split(".")[0:2]])
+if stack_data.__version__ == "???":
+    SV_VERSION = (0, 5)
+else:
+    SV_VERSION = tuple([int(x) for x in stack_data.__version__.split(".")[0:2]])
 
 
 def test_reset():
