##// END OF EJS Templates
Backport PR #12874: fixup release note and testing
Matthias Bussonnier -
Show More
@@ -123,94 +123,101 b' ZeroDivisionError Traceback (most recent call last)'
123 123 ZeroDivisionError: ...
124 124 """
125 125
126 def doctest_tb_sysexit():
127 """
128 In [17]: %xmode plain
129 Exception reporting mode: Plain
130
131 In [18]: %run simpleerr.py exit
132 An exception has occurred, use %tb to see the full traceback.
133 SystemExit: (1, 'Mode = exit')
134
135 In [19]: %run simpleerr.py exit 2
136 An exception has occurred, use %tb to see the full traceback.
137 SystemExit: (2, 'Mode = exit')
138
139 In [20]: %tb
140 Traceback (most recent call last):
141 File ... in <module>
142 bar(mode)
143 File ... line 22, in bar
144 sysexit(stat, mode)
145 File ... line 11, in sysexit
146 raise SystemExit(stat, 'Mode = %s' % mode)
147 SystemExit: (2, 'Mode = exit')
148
149 In [21]: %xmode context
150 Exception reporting mode: Context
151
152 In [22]: %tb
153 ---------------------------------------------------------------------------
154 SystemExit Traceback (most recent call last)
155 <BLANKLINE>
156 ...<module>
157 30 mode = 'div'
158 31
159 ---> 32 bar(mode)
160 <BLANKLINE>
161 ...bar(mode)
162 20 except:
163 21 stat = 1
164 ---> 22 sysexit(stat, mode)
165 23 else:
166 24 raise ValueError('Unknown mode')
167 <BLANKLINE>
168 ...sysexit(stat, mode)
169 9
170 10 def sysexit(stat, mode):
171 ---> 11 raise SystemExit(stat, 'Mode = %s' % mode)
172 12
173 13 def bar(mode):
174 <BLANKLINE>
175 SystemExit: (2, 'Mode = exit')
176
177 In [23]: %xmode verbose
178 Exception reporting mode: Verbose
179
180 In [24]: %tb
181 ---------------------------------------------------------------------------
182 SystemExit Traceback (most recent call last)
183 <BLANKLINE>
184 ... in <module>
185 30 mode = 'div'
186 31
187 ---> 32 bar(mode)
188 global bar = <function bar at ...>
189 global mode = 'exit'
190 <BLANKLINE>
191 ... in bar(mode='exit')
192 20 except:
193 21 stat = 1
194 ---> 22 sysexit(stat, mode)
195 global sysexit = <function sysexit at ...>
196 stat = 2
197 mode = 'exit'
198 23 else:
199 24 raise ValueError('Unknown mode')
200 <BLANKLINE>
201 ... in sysexit(stat=2, mode='exit')
202 9
203 10 def sysexit(stat, mode):
204 ---> 11 raise SystemExit(stat, 'Mode = %s' % mode)
205 global SystemExit = undefined
206 stat = 2
207 mode = 'exit'
208 12
209 13 def bar(mode):
210 <BLANKLINE>
211 SystemExit: (2, 'Mode = exit')
212 """
213
126 # TODO : Marc 2021 – this seem to fail due
127 # to upstream changes in CI for whatever reason.
128 # Commenting for now, to revive someday (maybe?)
129 # nose won't work in 3.10 anyway and we'll have to disable iptest.
130 # thus this likely need to bemigrated to pytest.
131
132 # warning this test differs between 7.x and 8+ branch.
133
134 # def doctest_tb_sysexit():
135 # """
136 # In [17]: %xmode plain
137 # Exception reporting mode: Plain
138 #
139 # In [18]: %run simpleerr.py exit
140 # An exception has occurred, use %tb to see the full traceback.
141 # SystemExit: (1, 'Mode = exit')
142 #
143 # In [19]: %run simpleerr.py exit 2
144 # An exception has occurred, use %tb to see the full traceback.
145 # SystemExit: (2, 'Mode = exit')
146 #
147 # In [20]: %tb
148 # Traceback (most recent call last):
149 # File ... in <module>
150 # bar(mode)
151 # File ... line 22, in bar
152 # sysexit(stat, mode)
153 # File ... line 11, in sysexit
154 # raise SystemExit(stat, 'Mode = %s' % mode)
155 # SystemExit: (2, 'Mode = exit')
156 #
157 # In [21]: %xmode context
158 # Exception reporting mode: Context
159 #
160 # In [22]: %tb
161 # ---------------------------------------------------------------------------
162 # SystemExit Traceback (most recent call last)
163 # <BLANKLINE>
164 # ...<module>
165 # 30 mode = 'div'
166 # 31
167 # ---> 32 bar(mode)
168 # <BLANKLINE>
169 # ...bar(mode)
170 # 20 except:
171 # 21 stat = 1
172 # ---> 22 sysexit(stat, mode)
173 # 23 else:
174 # 24 raise ValueError('Unknown mode')
175 # <BLANKLINE>
176 # ...sysexit(stat, mode)
177 # 9
178 # 10 def sysexit(stat, mode):
179 # ---> 11 raise SystemExit(stat, 'Mode = %s' % mode)
180 # 12
181 # 13 def bar(mode):
182 # <BLANKLINE>
183 # SystemExit: (2, 'Mode = exit')
184 #
185 # In [23]: %xmode verbose
186 # Exception reporting mode: Verbose
187 #
188 # In [24]: %tb
189 # ---------------------------------------------------------------------------
190 # SystemExit Traceback (most recent call last)
191 # <BLANKLINE>
192 # ... in <module>
193 # 30 mode = 'div'
194 # 31
195 # ---> 32 bar(mode)
196 # global bar = <function bar at ...>
197 # global mode = 'exit'
198 # <BLANKLINE>
199 # ... in bar(mode='exit')
200 # 20 except:
201 # 21 stat = 1
202 # ---> 22 sysexit(stat, mode)
203 # global sysexit = <function sysexit at ...>
204 # stat = 2
205 # mode = 'exit'
206 # 23 else:
207 # 24 raise ValueError('Unknown mode')
208 # <BLANKLINE>
209 # ... in sysexit(stat=2, mode='exit')
210 # 9
211 # 10 def sysexit(stat, mode):
212 # ---> 11 raise SystemExit(stat, 'Mode = %s' % mode)
213 # global SystemExit = undefined
214 # stat = 2
215 # mode = 'exit'
216 # 12
217 # 13 def bar(mode):
218 # <BLANKLINE>
219 # SystemExit: (2, 'Mode = exit')
220 # """
214 221
215 222 def test_run_cell():
216 223 import textwrap
@@ -7,6 +7,16 b''
7 7 IPython 7.22
8 8 ============
9 9
10 Second release of IPython for 2021, mostly containing bug fixes. Here is a quick
11 rundown of the few changes.
12
13 - Fix some ``sys.excepthook`` shenanigan when embedding with qt, recommended if
14 you – for example – use `napari <https://napari.org>`__. :ghpull:`12842`.
15 - Fix bug when using the new ipdb ``%context`` magic :ghpull:`12844`
16 - Couples of deprecation cleanup :ghpull:`12868`
17 - Update for new dpast.com api if you use the ``%pastbin`` magic. :ghpull:`12712`
18 - Remove support for numpy before 1.16. :ghpull:`12836`
19
10 20
11 21 Thanks
12 22 ------
@@ -18,7 +28,7 b" codebase; they now have triage permissions to the IPython repository and we'll"
18 28 work toward giving them more permission in the future.
19 29
20 30 Many thanks to all the contributors to this release you can find all individual
21 contributions to this milestone `on github <https://github.com/ipython/ipython/milestone/XX>`__.
31 contributions to this milestone `on github <https://github.com/ipython/ipython/milestone/84>`__.
22 32
23 33 Thanks as well to organisations, QuantStack for working on debugger
24 34 compatibility for Xeus_python, and the `D. E. Shaw group
General Comments 0
You need to be logged in to leave comments. Login now