Code

Opened 5 years ago

Closed 5 years ago

Last modified 5 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

Attachments (0)

Change History (2)

comment:1 Changed 5 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 5 years ago by kmtracey

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

r10845 from trunk.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.