MWE:
def test_complex():
assert pytest.approx(1j) == 2j
Result:
=================================== FAILURES ===================================
_________________________________ test_complex _________________________________
> ???
E assert <[TypeError("can't convert complex to float") raised in repr()] SafeRepr object at 0x7f40613577a0> == 2j
E + where <[TypeError("can't convert complex to float") raised in repr()] SafeRepr object at 0x7f40613577a0> = <class '_pytest.python.approx'>(1j)
E + where <class '_pytest.python.approx'> = pytest.approx
This should clearly be fixed.
Version:
>>> pytest.__version__
'3.0.3'
MWE:
Result:
This should clearly be fixed.
Version: