Skip to content

Commit

Permalink
Add changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ammaraskar committed Jan 26, 2025
1 parent 29102cb commit ffc7e5b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Alice Purcell
Allan Feldman
Aly Sivji
Amir Elkess
Ammar Askar
Anatoly Bubenkoff
Anders Hovmöller
Andras Mitzki
Expand Down
18 changes: 18 additions & 0 deletions changelog/10224.improvement.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pytest's ``short`` and ``long`` traceback styles (:ref:`how-to-modifying-python-tb-printing`)
now have partial :pep:`657` support and will show specific code segments in the
traceback.

.. code-block:: pytest
================================= FAILURES =================================
_______________________ test_gets_correct_tracebacks _______________________
test_tracebacks.py:12: in test_gets_correct_tracebacks
assert manhattan_distance(p1, p2) == 1
^^^^^^^^^^^^^^^^^^^^^^^^^^
test_tracebacks.py:6: in manhattan_distance
return abs(point_1.x - point_2.x) + abs(point_1.y - point_2.y)
^^^^^^^^^
E AttributeError: 'NoneType' object has no attribute 'x'
-- by :user:`ammaraskar`

0 comments on commit ffc7e5b

Please sign in to comment.