Added versionchanged directives
This commit is contained in:
		
							parent
							
								
									c29130d400
								
							
						
					
					
						commit
						f8d4cadc3d
					
				| 
						 | 
					@ -1337,6 +1337,8 @@ def raises(expected_exception, *args, **kwargs):
 | 
				
			||||||
        >>> with raises(ZeroDivisionError):
 | 
					        >>> with raises(ZeroDivisionError):
 | 
				
			||||||
        ...    1/0
 | 
					        ...    1/0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    .. versionchanged:: 2.10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    In the context manager form you may use the keyword argument
 | 
					    In the context manager form you may use the keyword argument
 | 
				
			||||||
    ``message`` to specify a custom failure message::
 | 
					    ``message`` to specify a custom failure message::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -85,6 +85,8 @@ and if you need to have access to the actual exception info you may use::
 | 
				
			||||||
the actual exception raised.  The main attributes of interest are
 | 
					the actual exception raised.  The main attributes of interest are
 | 
				
			||||||
``.type``, ``.value`` and ``.traceback``.
 | 
					``.type``, ``.value`` and ``.traceback``.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.. versionchanged:: 2.10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
In the context manager form you may use the keyword argument
 | 
					In the context manager form you may use the keyword argument
 | 
				
			||||||
``message`` to specify a custom failure message::
 | 
					``message`` to specify a custom failure message::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue