mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	merge 3.2
This commit is contained in:
		
						commit
						e71abcc7bb
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -155,12 +155,12 @@ def test_file(self):
 | 
			
		|||
##             self._test_urls(urls, self._extra_handlers()+[bauth, dauth])
 | 
			
		||||
 | 
			
		||||
    def test_urlwithfrag(self):
 | 
			
		||||
        urlwith_frag = "https://docs.python.org/2/glossary.html#glossary"
 | 
			
		||||
        urlwith_frag = "http://www.pythontest.net/index.html#frag"
 | 
			
		||||
        with support.transient_internet(urlwith_frag):
 | 
			
		||||
            req = urllib.request.Request(urlwith_frag)
 | 
			
		||||
            res = urllib.request.urlopen(req)
 | 
			
		||||
            self.assertEqual(res.geturl(),
 | 
			
		||||
                    "https://docs.python.org/2/glossary.html#glossary")
 | 
			
		||||
                    "http://www.pythontest.net/index.html#frag")
 | 
			
		||||
 | 
			
		||||
    def test_custom_headers(self):
 | 
			
		||||
        url = "http://www.example.com"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue