File: 0005-Workaround-broken-stack_data.__version__-in-testing.patch

package info (click to toggle)
ipython 8.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,184 kB
  • sloc: python: 36,444; sh: 407; makefile: 243
file content (24 lines) | stat: -rw-r--r-- 728 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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():