mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	ignore BGR;15/16 test failure on big-endian
This commit is contained in:
		
							parent
							
								
									5c960d6abc
								
							
						
					
					
						commit
						98510570e6
					
				| 
						 | 
					@ -28,6 +28,7 @@ from .helper import (
 | 
				
			||||||
    assert_image_similar_tofile,
 | 
					    assert_image_similar_tofile,
 | 
				
			||||||
    assert_not_all_same,
 | 
					    assert_not_all_same,
 | 
				
			||||||
    hopper,
 | 
					    hopper,
 | 
				
			||||||
 | 
					    is_big_endian,
 | 
				
			||||||
    is_win32,
 | 
					    is_win32,
 | 
				
			||||||
    mark_if_feature_version,
 | 
					    mark_if_feature_version,
 | 
				
			||||||
    modes,
 | 
					    modes,
 | 
				
			||||||
| 
						 | 
					@ -1036,6 +1037,8 @@ class TestImageBytes:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @pytest.mark.parametrize("mode", modes)
 | 
					    @pytest.mark.parametrize("mode", modes)
 | 
				
			||||||
    def test_getdata_putdata(self, mode: str) -> None:
 | 
					    def test_getdata_putdata(self, mode: str) -> None:
 | 
				
			||||||
 | 
					        if is_big_endian and mode in ("BGR;15", "BGR;16"):
 | 
				
			||||||
 | 
					            pytest.xfail(f"Known failure of {mode} on big-endian")
 | 
				
			||||||
        im = hopper(mode)
 | 
					        im = hopper(mode)
 | 
				
			||||||
        reloaded = Image.new(mode, im.size)
 | 
					        reloaded = Image.new(mode, im.size)
 | 
				
			||||||
        reloaded.putdata(im.getdata())
 | 
					        reloaded.putdata(im.getdata())
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user