[issue12527] assertRaisesRegex doc'd with 'msg' arg, but it's not implemented?

Benjamin Peterson report at bugs.python.org
Sun Jul 10 19:29:02 CEST 2011


Benjamin Peterson <benjamin at python.org> added the comment:

You're not getting this?

.FFE
======================================================================
ERROR: test_intfail4 (__main__.TestInt)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "x.py", line 22, in test_intfail4
    int('ABC')
ValueError: invalid literal for int() with base 10: 'ABC'

======================================================================
FAIL: test_intfail2 (__main__.TestInt)
----------------------------------------------------------------------
ValueError: invalid literal for int() with base 10: 'ABC'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "x.py", line 12, in test_intfail2
    int('ABC')
AssertionError: "lambda" does not match "invalid literal for int() with base 10: 'ABC'" : Foo!

======================================================================
FAIL: test_intfail3 (__main__.TestInt)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "x.py", line 17, in test_intfail3
    int(1)
AssertionError: ValueError not raised : Foo!

----------------------------------------------------------------------
Ran 4 tests in 0.001s

FAILED (failures=2, errors=1)

----------
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list