New submission from Bernt Røskar Brenna <bernt.bre...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue7876>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to