mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	test_find_available_port: use port 5001
macOS now uses port 5000 for the AirPlay receiver functionality, so this test will always fail on a macOS desktop (unless AirPlay receiver functionality is disabled like in CI).
This commit is contained in:
		
							parent
							
								
									3b3b5cdc63
								
							
						
					
					
						commit
						fc0de8b8fc
					
				| 
						 | 
					@ -486,8 +486,8 @@ def test_to_ternary_int():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def test_find_available_port():
 | 
					def test_find_available_port():
 | 
				
			||||||
    host = "0.0.0.0"
 | 
					    host = "0.0.0.0"
 | 
				
			||||||
    port = 5000
 | 
					    port = 5001
 | 
				
			||||||
    assert find_available_port(port, host) == port, "Port 5000 isn't free"
 | 
					    assert find_available_port(port, host) == port, "Port 5001 isn't free"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    from wsgiref.simple_server import demo_app, make_server
 | 
					    from wsgiref.simple_server import demo_app, make_server
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user