mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	bpo-36948: Fix test_urlopener_retrieve_file on Windows (GH-13476)
This commit is contained in:
		
							parent
							
								
									eca18aac7b
								
							
						
					
					
						commit
						2725cb01d7
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1470,7 +1470,8 @@ def test_urlopener_retrieve_file(self):
 | 
			
		|||
            os.close(fd)
 | 
			
		||||
            fileurl = "file:" + urllib.request.pathname2url(tmpfile)
 | 
			
		||||
            filename, _ = urllib.request.URLopener().retrieve(fileurl)
 | 
			
		||||
            self.assertEqual(filename, tmpfile)
 | 
			
		||||
            # Some buildbots have TEMP folder that uses a lowercase drive letter.
 | 
			
		||||
            self.assertEqual(os.path.normcase(filename), os.path.normcase(tmpfile))
 | 
			
		||||
 | 
			
		||||
    @support.ignore_warnings(category=DeprecationWarning)
 | 
			
		||||
    def test_urlopener_retrieve_remote(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue