File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Alice Purcell
2424Allan Feldman
2525Aly Sivji
2626Amir Elkess
27+ Ammar Askar
2728Anatoly Bubenkoff
2829Anders Hovmöller
2930Andras Mitzki
Original file line number Diff line number Diff line change 1+ pytest's ``short `` and ``long `` traceback styles (:ref: `how-to-modifying-python-tb-printing `)
2+ now have partial :pep: `657 ` support and will show specific code segments in the
3+ traceback.
4+
5+ .. code-block :: pytest
6+
7+ ================================= FAILURES =================================
8+ _______________________ test_gets_correct_tracebacks _______________________
9+
10+ test_tracebacks.py:12: in test_gets_correct_tracebacks
11+ assert manhattan_distance(p1, p2) == 1
12+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
13+ test_tracebacks.py:6: in manhattan_distance
14+ return abs(point_1.x - point_2.x) + abs(point_1.y - point_2.y)
15+ ^^^^^^^^^
16+ E AttributeError: 'NoneType' object has no attribute 'x'
17+
18+ -- by :user: `ammaraskar `
You can’t perform that action at this time.
0 commit comments