Skip to content

Commit d6f3559

Browse files
author
Farbod Ahmadian
committed
add change log for 389
1 parent 15712a5 commit d6f3559

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ Evgeny Seliverstov
149149
Fabian Sturm
150150
Fabien Zarifian
151151
Fabio Zadrozny
152+
Farbod Ahmadian
152153
faph
153154
Felix Hofstätter
154155
Felix Nieuwenhuizen

changelog/389.improvement.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
The readability of assertion introspection of bound methods has been enhanced
2+
-- by :user:`farbodahm`, :user:`webknjaz`, :user:`obestwalter`, :user:`flub`
3+
and :user:`glyphack`.
4+
5+
Previously it was something like this:
6+
7+
.. code-block:: console
8+
9+
=================================== FAILURES ===================================
10+
_____________________________________ test _____________________________________
11+
12+
def test():
13+
> assert Help().fun() == 2
14+
E assert 1 == 2
15+
E + where 1 = <bound method Help.fun of <example.Help instance at 0x256a830>>()
16+
E + where <bound method Help.fun of <example.Help instance at 0x256a830>> = <example.Help instance at 0x256a830>.fun
17+
E + where <example.Help instance at 0x256a830> = Help()
18+
19+
example.py:7: AssertionError
20+
=========================== 1 failed in 0.03 seconds ===========================
21+
22+
23+
And now it's like:
24+
25+
.. code-block:: console
26+
27+
=================================== FAILURES ===================================
28+
_____________________________________ test _____________________________________
29+
30+
def test():
31+
> assert Help().fun() == 2
32+
E assert 1 == 2
33+
E + where 1 = fun()
34+
E + where fun = <test_local.Help object at 0x1074be230>.fun
35+
E + where <test_local.Help object at 0x1074be230> = Help()
36+
37+
test_local.py:13: AssertionError
38+
=========================== 1 failed in 0.03 seconds ===========================

0 commit comments

Comments
 (0)