Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11215 closed (fixed)

Testing Django Application document Typo: try...catch should be try...except

Reported by: jgomo3 Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It's written:

You can then use a standard try...catch block or unittest.TestCase.assertRaises() to test for exceptions.

It should be:

You can then use a standard try...except block or unittest.TestCase.assertRaises() to test for exceptions.

http://docs.djangoproject.com/en/dev/topics/testing/#exceptions

Change History (2)

comment:1 by Karen Tracey, 15 years ago

Resolution: fixed
Status: newclosed

(In [10845]) Fixed #11215 -- Replaced erroneous catch with except in testing doc.

comment:2 by Karen Tracey, 15 years ago

(In [10846]) [1.0.X] Fixed #11215 -- Replaced erroneous catch with except in testing doc. Thanks jgomo3.

r10845 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top