mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	gh-131032: Add support.linked_to_musl() function (#131071)
Skip test_math.test_fma_zero_result() if Python is linked to the musl C library.
This commit is contained in:
		
							parent
							
								
									2ed671b5e3
								
							
						
					
					
						commit
						68922ace4d
					
				
					 3 changed files with 25 additions and 1 deletions
				
			
		|  | @ -2769,7 +2769,8 @@ def test_fma_infinities(self): | |||
|     # properly: it doesn't use the right sign when the result is zero. | ||||
|     @unittest.skipIf( | ||||
|         sys.platform.startswith(("freebsd", "wasi", "netbsd", "emscripten")) | ||||
|         or (sys.platform == "android" and platform.machine() == "x86_64"), | ||||
|         or (sys.platform == "android" and platform.machine() == "x86_64") | ||||
|         or support.linked_to_musl(),  # gh-131032 | ||||
|         f"this platform doesn't implement IEE 754-2008 properly") | ||||
|     def test_fma_zero_result(self): | ||||
|         nonnegative_finites = [0.0, 1e-300, 2.3, 1e300] | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner