mirror of
				https://code.hackerspace.pl/q3k/youtube-dl
				synced 2025-03-16 11:43:02 +00:00 
			
		
		
		
	[test/test_http] Fix getsockname() on Jython
This commit is contained in:
		
							parent
							
								
									8c32e5dc32
								
							
						
					
					
						commit
						54fb199681
					
				| @ -17,7 +17,7 @@ TEST_DIR = os.path.dirname(os.path.abspath(__file__)) | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def http_server_port(httpd): | def http_server_port(httpd): | ||||||
|     if os.name == 'java': |     if os.name == 'java' and isinstance(httpd.socket, ssl.SSLSocket): | ||||||
|         # In Jython SSLSocket is not a subclass of socket.socket |         # In Jython SSLSocket is not a subclass of socket.socket | ||||||
|         sock = httpd.socket.sock |         sock = httpd.socket.sock | ||||||
|     else: |     else: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Yen Chi Hsuan
						Yen Chi Hsuan