[issue30190] unittest's assertAlmostEqual improved error message

2017-07-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Sorry, I accidentally picked up the wrong thread. -- resolution: -> fixed stage: backport needed -> resolved status: pending -> closed versions: -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Pyt

[issue30190] unittest's assertAlmostEqual improved error message

2017-07-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Reopening as it needs backports for 2.7, 3.3, 3.4, 3.5 and 3.6. -- resolution: fixed -> stage: resolved -> backport needed status: closed -> pending versions: +Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6 __

[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- pull_requests: +1633 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: OK thanks. Fix coming. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Warnings are not shown when the source is already compiled to .pyc file. $ find -name '*.py[co]' -exec rm '{}' + $ ./python -Wa -m test test_unittest Run tests sequentially 0:00:00 load avg: 0.54 [1/1] test_unittest /home/serhiy/py/cpython/Lib/unittest/test/te

[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: $ ./python -Wa Lib/unittest/test/test_assertions.py Lib/unittest/test/test_assertions.py:228: DeprecationWarning: invalid escape sequence \( ["^1 != 2 within 7 places \(1 difference\)$", "^oops$", Lib/unittest/test/test_assertions.py:229: DeprecationWarning:

[issue30190] unittest's assertAlmostEqual improved error message

2017-05-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Mmm I can't see them. Am I supposed to enable this kind of warning somehow? -- ___ Python tracker ___ ___

[issue30190] unittest's assertAlmostEqual improved error message

2017-05-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New test produce deprecation warnings: /home/serhiy/py/cpython/Lib/unittest/test/test_assertions.py:228: DeprecationWarning: invalid escape sequence \( ["^1 != 2 within 7 places \(1 difference\)$", "^oops$", /home/serhiy/py/cpython/Lib/unittest/test/test_as

[issue30190] unittest's assertAlmostEqual improved error message

2017-05-05 Thread Berker Peksag
Changes by Berker Peksag : -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___

[issue30190] unittest's assertAlmostEqual improved error message

2017-05-01 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New changeset 5d7a8d0c13737fd531b722ad76c505ef47aac96a by Giampaolo Rodola in branch 'master': bpo-30190: improved error msg for assertAlmostEqual(delta=...) (#1331) https://github.com/python/cpython/commit/5d7a8d0c13737fd531b722ad76c505ef47aac96a

[issue30190] unittest's assertAlmostEqual improved error message

2017-04-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch looks good to me. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mail

[issue30190] unittest's assertAlmostEqual improved error message

2017-04-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Done. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30190] unittest's assertAlmostEqual improved error message

2017-04-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Thanks for chiming in. > Is it worth to output a difference when the delta argument is not passed? Yes, probably. I will change that. > Is it worth to output a signed difference rather than an absolute value? Mmmm probably not IMHO. Personally I never care

[issue30190] unittest's assertAlmostEqual improved error message

2017-04-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it worth to output a difference when the delta argument is not passed? Is it worth to output a signed difference rather than an absolute value? -- nosy: +serhiy.storchaka ___ Python tracker

[issue30190] unittest's assertAlmostEqual improved error message

2017-04-27 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- title: unittest's assertAlmostEqual should show the difference -> unittest's assertAlmostEqual improved error message ___ Python tracker ___ __