Opened 6 years ago

Closed 6 years ago

Last modified 6 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:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

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 Changed 6 years ago by kmtracey

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 6 years ago by kmtracey

(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