mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Fix transmitting warning options to the children when running tests in
parallel (thanks Michael for pointing this).
This commit is contained in:
		
							parent
							
								
									3dcf745a61
								
							
						
					
					
						commit
						5066b03361
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -1389,9 +1389,8 @@ def args_from_interpreter_flags():
 | 
				
			||||||
        v = getattr(sys.flags, flag)
 | 
					        v = getattr(sys.flags, flag)
 | 
				
			||||||
        if v > 0:
 | 
					        if v > 0:
 | 
				
			||||||
            args.append('-' + opt * v)
 | 
					            args.append('-' + opt * v)
 | 
				
			||||||
        if sys.warnoptions:
 | 
					    for opt in sys.warnoptions:
 | 
				
			||||||
            args.append('-W')
 | 
					        args.append('-W' + opt)
 | 
				
			||||||
            args.extend(sys.warnoptions)
 | 
					 | 
				
			||||||
    return args
 | 
					    return args
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#============================================================
 | 
					#============================================================
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue