mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Fix test_import failure when run multiple times.
(2.7-only)
This commit is contained in:
		
							parent
							
								
									b8572a1673
								
							
						
					
					
						commit
						17c07134a9
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -263,7 +263,10 @@ class ImportTests(unittest.TestCase):
 | 
			
		|||
                  import imp
 | 
			
		||||
            sys.argv.insert(0, C())
 | 
			
		||||
            """))
 | 
			
		||||
        script_helper.assert_python_ok(testfn)
 | 
			
		||||
        try:
 | 
			
		||||
            script_helper.assert_python_ok(testfn)
 | 
			
		||||
        finally:
 | 
			
		||||
            unlink(testfn)
 | 
			
		||||
 | 
			
		||||
    def test_bug7732(self):
 | 
			
		||||
        source = TESTFN + '.py'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue