[issue30190] unittest's assertAlmostEqual improved error message

Serhiy Storchaka report at bugs.python.org
Wed May 10 09:07:19 EDT 2017


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: invalid escape sequence \(
  "^1 != 2 within 7 places \(1 difference\)$",
Lib/unittest/test/test_assertions.py:230: DeprecationWarning: invalid escape sequence \(
  "^1 != 2 within 7 places \(1 difference\) : oops$"])
...................................
----------------------------------------------------------------------
Ran 35 tests in 0.052s

OK

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30190>
_______________________________________


More information about the Python-bugs-list mailing list