[New-bugs-announce] [issue7876] unittest docs use deprecated method in code example

Bernt Røskar Brenna report at bugs.python.org
Sun Feb 7 21:46:39 CET 2010


New submission from Bernt Røskar Brenna <bernt.brenna at gmail.com>:

Suggest change the code example to use assertRaises instead of failUnlessRaises.

The docs read:

assertRaises(exception[, callable, ...])¶
failUnlessRaises(exception[, callable, ...])¶
    ....

    with self.failUnlessRaises(some_error_class):
        do_something()

    ...

    Deprecated since version 3.1: failUnlessRaises()

----------
assignee: georg.brandl
components: Documentation
messages: 99017
nosy: Bernt.Røskar.Brenna, georg.brandl
severity: normal
status: open
title: unittest docs use deprecated method in code example
versions: Python 3.1

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


More information about the New-bugs-announce mailing list