#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 , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:2 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
(In [10845]) Fixed #11215 -- Replaced erroneous catch with except in testing doc.