mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Backported to 2.3.
This commit is contained in:
		
							parent
							
								
									ee950ff393
								
							
						
					
					
						commit
						d4210bc718
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		| 
						 | 
					@ -293,8 +293,16 @@ def test_noinherit(self):
 | 
				
			||||||
        tester = os.path.join(os.path.dirname(os.path.abspath(me)),
 | 
					        tester = os.path.join(os.path.dirname(os.path.abspath(me)),
 | 
				
			||||||
                              "tf_inherit_check.py")
 | 
					                              "tf_inherit_check.py")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        retval = os.spawnl(os.P_WAIT, sys.executable,
 | 
					        # On Windows a spawn* /path/ with embedded spaces shouldn't be quoted,
 | 
				
			||||||
                           sys.executable, tester, v, fd)
 | 
					        # but an arg with embedded spaces should be decorated with double
 | 
				
			||||||
 | 
					        # quotes on each end
 | 
				
			||||||
 | 
					        if sys.platform in ('win32'):
 | 
				
			||||||
 | 
					            decorated = '"%s"' % sys.executable
 | 
				
			||||||
 | 
					            tester = '"%s"' % tester
 | 
				
			||||||
 | 
					        else:
 | 
				
			||||||
 | 
					            decorated = sys.executable
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        retval = os.spawnl(os.P_WAIT, sys.executable, decorated, tester, v, fd)
 | 
				
			||||||
        self.failIf(retval < 0,
 | 
					        self.failIf(retval < 0,
 | 
				
			||||||
                    "child process caught fatal signal %d" % -retval)
 | 
					                    "child process caught fatal signal %d" % -retval)
 | 
				
			||||||
        self.failIf(retval > 0, "child process reports failure")
 | 
					        self.failIf(retval > 0, "child process reports failure")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue