Skip to content

Commit ffc7e5b

Browse files
committed
Add changelog entry
1 parent 29102cb commit ffc7e5b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Alice Purcell
2424
Allan Feldman
2525
Aly Sivji
2626
Amir Elkess
27+
Ammar Askar
2728
Anatoly Bubenkoff
2829
Anders Hovmöller
2930
Andras Mitzki

changelog/10224.improvement.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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`

0 commit comments

Comments
 (0)