[Python-checkins] [python/cpython] 5d7a8d: bpo-30190: improved error msg for assertAlmostEqua...

GitHub noreply at github.com
Mon May 1 12:18:57 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: 5d7a8d0c13737fd531b722ad76c505ef47aac96a
      https://github.com/python/cpython/commit/5d7a8d0c13737fd531b722ad76c505ef47aac96a
  Author: Giampaolo Rodola <g.rodola at gmail.com>
  Date:   2017-05-01 (Mon, 01 May 2017)

  Changed paths:
    M Lib/unittest/case.py
    M Lib/unittest/test/test_assertions.py
    M Misc/NEWS

  Log Message:
  -----------
  bpo-30190: improved error msg for assertAlmostEqual(delta=...) (#1331)

* #30190 / unittest / assertAlmostEqual(delta=...) / error msg: show the difference between the 2 numbers in case of failure

* safe_repr() diff

* also show difference when passing 'places' argument

* refactoring

* update Misc/NEWS




More information about the Python-checkins mailing list