diff --git a/doc/en/assert.rst b/doc/en/assert.rst index cd2a944f5..fb951dd28 100644 --- a/doc/en/assert.rst +++ b/doc/en/assert.rst @@ -192,8 +192,8 @@ provides an alternative explanation for ``Foo`` objects:: from test_foocompare import Foo def pytest_assertrepr_compare(op, left, right): if isinstance(left, Foo) and isinstance(right, Foo) and op == "==": - return ['Comparing Foo instances:', - ' vals: %s != %s' % (left.val, right.val)] + return ['Comparing Foo instances:', + ' vals: %s != %s' % (left.val, right.val)] now, given this test module::