Prepare release version 7.4.2 · pytest-dev/pytest@45f34df (original) (raw)

``` @@ -554,13 +554,13 @@ Here is a nice run of several failures and how pytest presents things:


`554`

`554`

` E AssertionError: assert False

`

`555`

`555`

` E + where False = <built-in method startswith of str object at 0xdeadbeef0027>('456')

`

`556`

`556`

` E + where <built-in method startswith of str object at 0xdeadbeef0027> = '123'.startswith

`

`557`

``

`-

E + where '123' = <function TestMoreErrors.test_startswith_nested.<locals>.f at 0xdeadbeef0006>()

`

`558`

``

`-

E + and '456' = <function TestMoreErrors.test_startswith_nested.<locals>.g at 0xdeadbeef0029>()

`

``

`557`

`+

E + where '123' = <function TestMoreErrors.test_startswith_nested.<locals>.f at 0xdeadbeef0029>()

`

``

`558`

`+

E + and '456' = <function TestMoreErrors.test_startswith_nested.<locals>.g at 0xdeadbeef002a>()

`

`559`

`559`

``

`560`

`560`

` failure_demo.py:235: AssertionError

`

`561`

`561`

` _____________________ TestMoreErrors.test_global_func ______________________

`

`562`

`562`

``

`563`

``

`-

self = <failure_demo.TestMoreErrors object at 0xdeadbeef002a>

`

``

`563`

`+

self = <failure_demo.TestMoreErrors object at 0xdeadbeef002b>

`

`564`

`564`

``

`565`

`565`

` def test_global_func(self):

`

`566`

`566`

` > assert isinstance(globf(42), float)

`

``` @@ -571,18 +571,18 @@ Here is a nice run of several failures and how ``pytest`` presents things:

571

571

` failure_demo.py:238: AssertionError

`

572

572

` _______________________ TestMoreErrors.test_instance _______________________

`

573

573

``

574

``

`-

self = <failure_demo.TestMoreErrors object at 0xdeadbeef002b>

`

``

574

`+

self = <failure_demo.TestMoreErrors object at 0xdeadbeef002c>

`

575

575

``

576

576

` def test_instance(self):

`

577

577

` self.x = 6 * 7

`

578

578

` > assert self.x != 42

`

579

579

` E assert 42 != 42

`

580

``

`-

E + where 42 = <failure_demo.TestMoreErrors object at 0xdeadbeef002b>.x

`

``

580

`+

E + where 42 = <failure_demo.TestMoreErrors object at 0xdeadbeef002c>.x

`

581

581

``

582

582

` failure_demo.py:242: AssertionError

`

583

583

` _______________________ TestMoreErrors.test_compare ________________________

`

584

584

``

585

``

`-

self = <failure_demo.TestMoreErrors object at 0xdeadbeef002c>

`

``

585

`+

self = <failure_demo.TestMoreErrors object at 0xdeadbeef002d>

`

586

586

``

587

587

` def test_compare(self):

`

588

588

` > assert globf(10) < 5

`

``` @@ -592,7 +592,7 @@ Here is a nice run of several failures and how pytest presents things:


`592`

`592`

` failure_demo.py:245: AssertionError

`

`593`

`593`

` _____________________ TestMoreErrors.test_try_finally ______________________

`

`594`

`594`

``

`595`

``

`-

self = <failure_demo.TestMoreErrors object at 0xdeadbeef002d>

`

``

`595`

`+

self = <failure_demo.TestMoreErrors object at 0xdeadbeef002e>

`

`596`

`596`

``

`597`

`597`

` def test_try_finally(self):

`

`598`

`598`

` x = 1

`

``` @@ -603,7 +603,7 @@ Here is a nice run of several failures and how ``pytest`` presents things:

603

603

` failure_demo.py:250: AssertionError

`

604

604

` ___________________ TestCustomAssertMsg.test_single_line ___________________

`

605

605

``

606

``

`-

self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef002e>

`

``

606

`+

self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef002f>

`

607

607

``

608

608

` def test_single_line(self):

`

609

609

` class A:

`

``` @@ -618,7 +618,7 @@ Here is a nice run of several failures and how pytest presents things:


`618`

`618`

` failure_demo.py:261: AssertionError

`

`619`

`619`

` ____________________ TestCustomAssertMsg.test_multiline ____________________

`

`620`

`620`

``

`621`

``

`-

self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef002f>

`

``

`621`

`+

self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef0030>

`

`622`

`622`

``

`623`

`623`

` def test_multiline(self):

`

`624`

`624`

` class A:

`

``` @@ -637,7 +637,7 @@ Here is a nice run of several failures and how ``pytest`` presents things:

637

637

` failure_demo.py:268: AssertionError

`

638

638

` ___________________ TestCustomAssertMsg.test_custom_repr ___________________

`

639

639

``

640

``

`-

self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef0030>

`

``

640

`+

self = <failure_demo.TestCustomAssertMsg object at 0xdeadbeef0031>

`

641

641

``

642

642

` def test_custom_repr(self):

`

643

643

` class JSON:

`