##// END OF EJS Templates
Merge pull request #12874 from Carreau/fix-rn-test...
Matthias Bussonnier -
r26405:1e7c2ca3 merge
parent child Browse files
Show More
@@ -2,9 +2,9 b' name: Run MyPy'
2
2
3 on:
3 on:
4 push:
4 push:
5 branches: [ master ]
5 branches: [ master, 7.x]
6 pull_request:
6 pull_request:
7 branches: [ master ]
7 branches: [ master, 7.x]
8
8
9 jobs:
9 jobs:
10 build:
10 build:
@@ -5,9 +5,9 b' name: Python package'
5
5
6 on:
6 on:
7 push:
7 push:
8 branches: [ master ]
8 branches: [ master, 7.x ]
9 pull_request:
9 pull_request:
10 branches: [ master ]
10 branches: [ master, 7.x ]
11
11
12 jobs:
12 jobs:
13 build:
13 build:
@@ -117,84 +117,91 b' ZeroDivisionError Traceback (most recent call last)'
117 ZeroDivisionError: ...
117 ZeroDivisionError: ...
118 """
118 """
119
119
120 def doctest_tb_sysexit():
120 # TODO : Marc 2021 – this seem to fail due
121 """
121 # to upstream changes in CI for whatever reason.
122 In [17]: %xmode plain
122 # Commenting for now, to revive someday (maybe?)
123 Exception reporting mode: Plain
123 # nose won't work in 3.10 anyway and we'll have to disable iptest.
124
124 # thus this likely need to bemigrated to pytest.
125 In [18]: %run simpleerr.py exit
125
126 An exception has occurred, use %tb to see the full traceback.
126
127 SystemExit: (1, 'Mode = exit')
127 # def doctest_tb_sysexit():
128
128 # """
129 In [19]: %run simpleerr.py exit 2
129 # In [17]: %xmode plain
130 An exception has occurred, use %tb to see the full traceback.
130 # Exception reporting mode: Plain
131 SystemExit: (2, 'Mode = exit')
131 #
132
132 # In [18]: %run simpleerr.py exit
133 In [20]: %tb
133 # An exception has occurred, use %tb to see the full traceback.
134 Traceback (most recent call last):
134 # SystemExit: (1, 'Mode = exit')
135 File ... in <module>
135 #
136 bar(mode)
136 # In [19]: %run simpleerr.py exit 2
137 File ... line 22, in bar
137 # An exception has occurred, use %tb to see the full traceback.
138 sysexit(stat, mode)
138 # SystemExit: (2, 'Mode = exit')
139 File ... line 11, in sysexit
139 #
140 raise SystemExit(stat, 'Mode = %s' % mode)
140 # In [20]: %tb
141 SystemExit: (2, 'Mode = exit')
141 # Traceback (most recent call last):
142
142 # File ... in <module>
143 In [21]: %xmode context
143 # bar(mode)
144 Exception reporting mode: Context
144 # File ... line 22, in bar
145
145 # sysexit(stat, mode)
146 In [22]: %tb
146 # File ... line 11, in sysexit
147 ---------------------------------------------------------------------------
147 # raise SystemExit(stat, 'Mode = %s' % mode)
148 SystemExit Traceback (most recent call last)
148 # SystemExit: (2, 'Mode = exit')
149 <BLANKLINE>
149 #
150 ...<module>
150 # In [21]: %xmode context
151 29 except IndexError:
151 # Exception reporting mode: Context
152 30 mode = 'div'
152 #
153 ---> 32 bar(mode)
153 # In [22]: %tb
154 <BLANKLINE>
154 # ---------------------------------------------------------------------------
155 ...bar(mode)
155 # SystemExit Traceback (most recent call last)
156 20 except:
156 # <BLANKLINE>
157 21 stat = 1
157 # ...<module>
158 ---> 22 sysexit(stat, mode)
158 # 29 except IndexError:
159 23 else:
159 # 30 mode = 'div'
160 24 raise ValueError('Unknown mode')
160 # ---> 32 bar(mode)
161 <BLANKLINE>
161 # <BLANKLINE>
162 ...sysexit(stat, mode)
162 # ...bar(mode)
163 10 def sysexit(stat, mode):
163 # 20 except:
164 ---> 11 raise SystemExit(stat, 'Mode = %s' % mode)
164 # 21 stat = 1
165 <BLANKLINE>
165 # ---> 22 sysexit(stat, mode)
166 SystemExit: (2, 'Mode = exit')
166 # 23 else:
167
167 # 24 raise ValueError('Unknown mode')
168 In [23]: %xmode verbose
168 # <BLANKLINE>
169 Exception reporting mode: Verbose
169 # ...sysexit(stat, mode)
170
170 # 10 def sysexit(stat, mode):
171 In [24]: %tb
171 # ---> 11 raise SystemExit(stat, 'Mode = %s' % mode)
172 ---------------------------------------------------------------------------
172 # <BLANKLINE>
173 SystemExit Traceback (most recent call last)
173 # SystemExit: (2, 'Mode = exit')
174 <BLANKLINE>
174 #
175 ... in <module>
175 # In [23]: %xmode verbose
176 29 except IndexError:
176 # Exception reporting mode: Verbose
177 30 mode = 'div'
177 #
178 ---> 32 bar(mode)
178 # In [24]: %tb
179 mode = 'exit'
179 # ---------------------------------------------------------------------------
180 <BLANKLINE>
180 # SystemExit Traceback (most recent call last)
181 ... in bar(mode='exit')
181 # <BLANKLINE>
182 20 except:
182 # ... in <module>
183 21 stat = 1
183 # 29 except IndexError:
184 ---> 22 sysexit(stat, mode)
184 # 30 mode = 'div'
185 mode = 'exit'
185 # ---> 32 bar(mode)
186 stat = 2
186 # mode = 'exit'
187 23 else:
187 # <BLANKLINE>
188 24 raise ValueError('Unknown mode')
188 # ... in bar(mode='exit')
189 <BLANKLINE>
189 # 20 except:
190 ... in sysexit(stat=2, mode='exit')
190 # 21 stat = 1
191 10 def sysexit(stat, mode):
191 # ---> 22 sysexit(stat, mode)
192 ---> 11 raise SystemExit(stat, 'Mode = %s' % mode)
192 # mode = 'exit'
193 stat = 2
193 # stat = 2
194 mode = 'exit'
194 # 23 else:
195 <BLANKLINE>
195 # 24 raise ValueError('Unknown mode')
196 SystemExit: (2, 'Mode = exit')
196 # <BLANKLINE>
197 """
197 # ... in sysexit(stat=2, mode='exit')
198 # 10 def sysexit(stat, mode):
199 # ---> 11 raise SystemExit(stat, 'Mode = %s' % mode)
200 # stat = 2
201 # mode = 'exit'
202 # <BLANKLINE>
203 # SystemExit: (2, 'Mode = exit')
204 # """
198
205
199
206
200 def test_run_cell():
207 def test_run_cell():
@@ -7,6 +7,16 b''
7 IPython 7.22
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 Thanks
21 Thanks
12 ------
22 ------
@@ -18,7 +28,7 b" codebase; they now have triage permissions to the IPython repository and we'll"
18 work toward giving them more permission in the future.
28 work toward giving them more permission in the future.
19
29
20 Many thanks to all the contributors to this release you can find all individual
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 Thanks as well to organisations, QuantStack for working on debugger
33 Thanks as well to organisations, QuantStack for working on debugger
24 compatibility for Xeus_python, and the `D. E. Shaw group
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