mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	A test of SSL support, using a roundabout method suggested by Guido.
However, this is only enabled with regrtest's --use=network switch.
This commit is contained in:
		
							parent
							
								
									7fdfc3885c
								
							
						
					
					
						commit
						d1ed15edb3
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		
							
								
								
									
										13
									
								
								Lib/test/test_socket_ssl.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								Lib/test/test_socket_ssl.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| # Test just the SSL support in the socket module, in a moderately bogus way. | ||||
| 
 | ||||
| import test_support | ||||
| 
 | ||||
| # Optionally test SSL support.  This currently requires the 'network' resource | ||||
| # as given on the regrtest command line.  If not available, nothing after this | ||||
| # line will be executed. | ||||
| test_support.requires('network') | ||||
| 
 | ||||
| import socket | ||||
| import urllib | ||||
| 
 | ||||
| urllib.urlopen('https://sf.net') | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Barry Warsaw
						Barry Warsaw