0
0
mirror of https://github.com/django/django.git synced 2024-11-29 22:56:46 +01:00

Fixed #27963 -- Removed unneeded docstring example in contributing docs.

This commit is contained in:
Mikkel Munch Mortensen 2017-03-21 15:12:41 +01:00 committed by Tim Graham
parent 075e93c16a
commit 1e93210f1f

View File

@ -39,13 +39,7 @@ Python style
* Use ``InitialCaps`` for class names (or for factory functions that * Use ``InitialCaps`` for class names (or for factory functions that
return classes). return classes).
* In docstrings, follow :pep:`257`. For example:: * In docstrings, follow the style of existing docstrings and :pep:`257`.
def foo():
"""
Calculate something and return the result.
"""
...
* In tests, use :meth:`~django.test.SimpleTestCase.assertRaisesMessage` instead * In tests, use :meth:`~django.test.SimpleTestCase.assertRaisesMessage` instead
of :meth:`~unittest.TestCase.assertRaises` so you can check the exception of :meth:`~unittest.TestCase.assertRaises` so you can check the exception