Show More
@@ -2,9 +2,9 name: Run MyPy | |||
|
2 | 2 | |
|
3 | 3 | on: |
|
4 | 4 | push: |
|
5 | branches: [ master ] | |
|
5 | branches: [ master, 7.x] | |
|
6 | 6 | pull_request: |
|
7 | branches: [ master ] | |
|
7 | branches: [ master, 7.x] | |
|
8 | 8 | |
|
9 | 9 | jobs: |
|
10 | 10 | build: |
@@ -5,9 +5,9 name: Python package | |||
|
5 | 5 | |
|
6 | 6 | on: |
|
7 | 7 | push: |
|
8 | branches: [ master ] | |
|
8 | branches: [ master, 7.x ] | |
|
9 | 9 | pull_request: |
|
10 | branches: [ master ] | |
|
10 | branches: [ master, 7.x ] | |
|
11 | 11 | |
|
12 | 12 | jobs: |
|
13 | 13 | build: |
@@ -117,84 +117,91 ZeroDivisionError Traceback (most recent call last) | |||
|
117 | 117 | ZeroDivisionError: ... |
|
118 | 118 | """ |
|
119 | 119 | |
|
120 | def doctest_tb_sysexit(): | |
|
121 | """ | |
|
122 | In [17]: %xmode plain | |
|
123 | Exception reporting mode: Plain | |
|
124 | ||
|
125 | In [18]: %run simpleerr.py exit | |
|
126 | An exception has occurred, use %tb to see the full traceback. | |
|
127 | SystemExit: (1, 'Mode = exit') | |
|
128 | ||
|
129 | In [19]: %run simpleerr.py exit 2 | |
|
130 | An exception has occurred, use %tb to see the full traceback. | |
|
131 | SystemExit: (2, 'Mode = exit') | |
|
132 | ||
|
133 | In [20]: %tb | |
|
134 | Traceback (most recent call last): | |
|
135 | File ... in <module> | |
|
136 | bar(mode) | |
|
137 | File ... line 22, in bar | |
|
138 | sysexit(stat, mode) | |
|
139 | File ... line 11, in sysexit | |
|
140 | raise SystemExit(stat, 'Mode = %s' % mode) | |
|
141 | SystemExit: (2, 'Mode = exit') | |
|
142 | ||
|
143 | In [21]: %xmode context | |
|
144 | Exception reporting mode: Context | |
|
145 | ||
|
146 | In [22]: %tb | |
|
147 | --------------------------------------------------------------------------- | |
|
148 | SystemExit Traceback (most recent call last) | |
|
149 | <BLANKLINE> | |
|
150 | ...<module> | |
|
151 | 29 except IndexError: | |
|
152 | 30 mode = 'div' | |
|
153 | ---> 32 bar(mode) | |
|
154 | <BLANKLINE> | |
|
155 | ...bar(mode) | |
|
156 | 20 except: | |
|
157 | 21 stat = 1 | |
|
158 | ---> 22 sysexit(stat, mode) | |
|
159 | 23 else: | |
|
160 | 24 raise ValueError('Unknown mode') | |
|
161 | <BLANKLINE> | |
|
162 | ...sysexit(stat, mode) | |
|
163 | 10 def sysexit(stat, mode): | |
|
164 | ---> 11 raise SystemExit(stat, 'Mode = %s' % mode) | |
|
165 | <BLANKLINE> | |
|
166 | SystemExit: (2, 'Mode = exit') | |
|
167 | ||
|
168 | In [23]: %xmode verbose | |
|
169 | Exception reporting mode: Verbose | |
|
170 | ||
|
171 | In [24]: %tb | |
|
172 | --------------------------------------------------------------------------- | |
|
173 | SystemExit Traceback (most recent call last) | |
|
174 | <BLANKLINE> | |
|
175 | ... in <module> | |
|
176 | 29 except IndexError: | |
|
177 | 30 mode = 'div' | |
|
178 | ---> 32 bar(mode) | |
|
179 | mode = 'exit' | |
|
180 | <BLANKLINE> | |
|
181 | ... in bar(mode='exit') | |
|
182 | 20 except: | |
|
183 | 21 stat = 1 | |
|
184 | ---> 22 sysexit(stat, mode) | |
|
185 | mode = 'exit' | |
|
186 | stat = 2 | |
|
187 | 23 else: | |
|
188 | 24 raise ValueError('Unknown mode') | |
|
189 | <BLANKLINE> | |
|
190 | ... in sysexit(stat=2, mode='exit') | |
|
191 |
|
|
|
192 | ---> 11 raise SystemExit(stat, 'Mode = %s' % mode) | |
|
193 | stat = 2 | |
|
194 | mode = 'exit' | |
|
195 | <BLANKLINE> | |
|
196 | SystemExit: (2, 'Mode = exit') | |
|
197 | """ | |
|
120 | # TODO : Marc 2021 – this seem to fail due | |
|
121 | # to upstream changes in CI for whatever reason. | |
|
122 | # Commenting for now, to revive someday (maybe?) | |
|
123 | # nose won't work in 3.10 anyway and we'll have to disable iptest. | |
|
124 | # thus this likely need to bemigrated to pytest. | |
|
125 | ||
|
126 | ||
|
127 | # def doctest_tb_sysexit(): | |
|
128 | # """ | |
|
129 | # In [17]: %xmode plain | |
|
130 | # Exception reporting mode: Plain | |
|
131 | # | |
|
132 | # In [18]: %run simpleerr.py exit | |
|
133 | # An exception has occurred, use %tb to see the full traceback. | |
|
134 | # SystemExit: (1, 'Mode = exit') | |
|
135 | # | |
|
136 | # In [19]: %run simpleerr.py exit 2 | |
|
137 | # An exception has occurred, use %tb to see the full traceback. | |
|
138 | # SystemExit: (2, 'Mode = exit') | |
|
139 | # | |
|
140 | # In [20]: %tb | |
|
141 | # Traceback (most recent call last): | |
|
142 | # File ... in <module> | |
|
143 | # bar(mode) | |
|
144 | # File ... line 22, in bar | |
|
145 | # sysexit(stat, mode) | |
|
146 | # File ... line 11, in sysexit | |
|
147 | # raise SystemExit(stat, 'Mode = %s' % mode) | |
|
148 | # SystemExit: (2, 'Mode = exit') | |
|
149 | # | |
|
150 | # In [21]: %xmode context | |
|
151 | # Exception reporting mode: Context | |
|
152 | # | |
|
153 | # In [22]: %tb | |
|
154 | # --------------------------------------------------------------------------- | |
|
155 | # SystemExit Traceback (most recent call last) | |
|
156 | # <BLANKLINE> | |
|
157 | # ...<module> | |
|
158 | # 29 except IndexError: | |
|
159 | # 30 mode = 'div' | |
|
160 | # ---> 32 bar(mode) | |
|
161 | # <BLANKLINE> | |
|
162 | # ...bar(mode) | |
|
163 | # 20 except: | |
|
164 | # 21 stat = 1 | |
|
165 | # ---> 22 sysexit(stat, mode) | |
|
166 | # 23 else: | |
|
167 | # 24 raise ValueError('Unknown mode') | |
|
168 | # <BLANKLINE> | |
|
169 | # ...sysexit(stat, mode) | |
|
170 | # 10 def sysexit(stat, mode): | |
|
171 | # ---> 11 raise SystemExit(stat, 'Mode = %s' % mode) | |
|
172 | # <BLANKLINE> | |
|
173 | # SystemExit: (2, 'Mode = exit') | |
|
174 | # | |
|
175 | # In [23]: %xmode verbose | |
|
176 | # Exception reporting mode: Verbose | |
|
177 | # | |
|
178 | # In [24]: %tb | |
|
179 | # --------------------------------------------------------------------------- | |
|
180 | # SystemExit Traceback (most recent call last) | |
|
181 | # <BLANKLINE> | |
|
182 | # ... in <module> | |
|
183 | # 29 except IndexError: | |
|
184 | # 30 mode = 'div' | |
|
185 | # ---> 32 bar(mode) | |
|
186 | # mode = 'exit' | |
|
187 | # <BLANKLINE> | |
|
188 | # ... in bar(mode='exit') | |
|
189 | # 20 except: | |
|
190 | # 21 stat = 1 | |
|
191 | # ---> 22 sysexit(stat, mode) | |
|
192 | # mode = 'exit' | |
|
193 | # stat = 2 | |
|
194 | # 23 else: | |
|
195 | # 24 raise ValueError('Unknown mode') | |
|
196 | # <BLANKLINE> | |
|
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 | 207 | def test_run_cell(): |
@@ -7,6 +7,16 | |||
|
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 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/ |
|
|
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