Ronny Pfannschmidt
							
						 
						
							 
							
							
							
							
								
							
							
								dbb1b5a227 
								
							 
						 
						
							
							
								
								remove NodeMarkers, turn own_markers into a list and use iter_markers api exclusively  
							
							 
							
							
							
						 
						
							2018-03-29 18:24:10 +02:00  
						
					 
				
					
						
							
							
								 
								Ronny Pfannschmidt
							
						 
						
							 
							
							
							
							
								
							
							
								159ea9b7c0 
								
							 
						 
						
							
							
								
								turn Markinfo into atts clsas, and return correct instances of it from node.get_marker  
							
							 
							
							
							
						 
						
							2018-03-29 17:52:01 +02:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								796db80ca4 
								
							 
						 
						
							
							
								
								Only escape str-like arguments passed to warnings  
							
							 
							
							... 
							
							
							
							Fix  #2956  
							
						 
						
							2017-11-27 23:17:15 -02:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								df6d5cd4e7 
								
							 
						 
						
							
							
								
								Use ascii_escaped to escape unicode warnings  
							
							 
							
							
							
						 
						
							2017-10-03 12:19:37 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								fbb9e9328b 
								
							 
						 
						
							
							
								
								Fix warning about non-ascii warnings even when they are ascii  
							
							 
							
							... 
							
							
							
							Fix  #2809  
							
						 
						
							2017-10-03 07:39:53 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								73c6122f35 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into features  
							
							 
							
							
							
						 
						
							2017-07-24 21:12:51 -03:00  
						
					 
				
					
						
							
							
								 
								Daniel Hahler
							
						 
						
							 
							
							
							
							
								
							
							
								97e5a3c889 
								
							 
						 
						
							
							
								
								Fix help for filterwarnings ini option  
							
							 
							
							
							
						 
						
							2017-07-21 14:21:31 +02:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								7341da1bc1 
								
							 
						 
						
							
							
								
								Introduce pytest.mark.filterwarnings  
							
							 
							
							
							
						 
						
							2017-07-20 22:31:49 -03:00  
						
					 
				
					
						
							
							
								 
								Andras Tim
							
						 
						
							 
							
							
							
							
								
							
							
								f640e0cb04 
								
							 
						 
						
							
							
								
								Fixed E221 flake8 errors  
							
							 
							
							... 
							
							
							
							multiple spaces before operator 
							
						 
						
							2017-07-17 01:44:22 +02:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								9d41eaedbf 
								
							 
						 
						
							
							
								
								Issue UnicodeWarning only for non-ascii unicode  
							
							 
							
							... 
							
							
							
							Fix  #2463  
							
						 
						
							2017-06-05 10:43:15 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								32e2642233 
								
							 
						 
						
							
							
								
								No longer override existing warning filters during warnings capture  
							
							 
							
							... 
							
							
							
							Fix  #2430  
							
						 
						
							2017-05-30 17:17:36 -03:00  
						
					 
				
					
						
							
							
								 
								wanghui
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								d7a5c5716f 
								
							 
						 
						
							
							
								
								Add UnicodeWarning for unicode warnings in Python2  
							
							 
							
							
							
						 
						
							2017-05-26 13:12:02 +08:00  
						
					 
				
					
						
							
							
								 
								wanghui
							
						 
						
							 
							
							
								
								
							
							
							
								
							
							
								c39689da41 
								
							 
						 
						
							
							
								
								Correct warnings with unicode message.  
							
							 
							
							
							
						 
						
							2017-05-25 17:59:42 +08:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								d027f760c0 
								
							 
						 
						
							
							
								
								Avoid displaying the same warning multiple times for an item  
							
							 
							
							
							
						 
						
							2017-03-20 20:40:53 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								3373e02eae 
								
							 
						 
						
							
							
								
								Add __future__ imports to warnings module  
							
							 
							
							
							
						 
						
							2017-03-20 20:06:01 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								be5db6fa22 
								
							 
						 
						
							
							
								
								Capture warnings around the entire runtestprotocol  
							
							 
							
							... 
							
							
							
							This is necessary for the warnings plugin to play nice with the
recwarn fixture 
							
						 
						
							2017-03-16 21:54:41 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								272afa9422 
								
							 
						 
						
							
							
								
								Display node ids and the warnings generated by it  
							
							 
							
							... 
							
							
							
							The rationale of using node ids is that users can copy/paste it to run a chosen test 
							
						 
						
							2017-03-04 20:53:42 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								de09023e45 
								
							 
						 
						
							
							
								
								Also capture warnings during setup/teardown  
							
							 
							
							
							
						 
						
							2017-03-04 16:15:03 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								e24081bf76 
								
							 
						 
						
							
							
								
								Change warning output  
							
							 
							
							
							
						 
						
							2017-03-04 15:59:20 -03:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								82785fcd40 
								
							 
						 
						
							
							
								
								Use warnings.catch_warnings instead of WarningsRecorder  
							
							 
							
							... 
							
							
							
							This has the benefical side-effect of not calling the original
warnings.showwarnings function, which in its original form
only writes the formatted warning to sys.stdout.
Calling the original warnings.showwarnings has the effect that nested WarningsRecorder all catch the warnings:
with WarningsRecorder() as rec1:
    with WarningsRecorder() as rec2:
        warnings.warn(UserWarning, 'some warning')
(both rec1 and rec2 sees the warning)
When running tests with `testdir`, the main pytest session would then see the warnings created by
the internal code being tested (if any), and the main pytest session would end up with warnings as well. 
							
						 
						
							2017-02-18 13:08:14 -02:00  
						
					 
				
					
						
							
							
								 
								Bruno Oliveira
							
						 
						
							 
							
							
							
							
								
							
							
								1da1906483 
								
							 
						 
						
							
							
								
								Rename code to _pytest.warnings and delete old files from the repository  
							
							 
							
							
							
						 
						
							2016-11-21 07:38:12 -02:00