mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Update tests to handle no longer raising
This commit is contained in:
		
							parent
							
								
									9517feccd9
								
							
						
					
					
						commit
						6215cd3e0f
					
				| 
						 | 
				
			
			@ -929,11 +929,10 @@ class TestFileJpeg:
 | 
			
		|||
            assert repr_jpeg.format == "JPEG"
 | 
			
		||||
            assert_image_similar(im, repr_jpeg, 17)
 | 
			
		||||
 | 
			
		||||
    def test_repr_jpeg_error(self):
 | 
			
		||||
    def test_repr_jpeg_error_returns_none(self):
 | 
			
		||||
        im = hopper("F")
 | 
			
		||||
 | 
			
		||||
        with pytest.raises(ValueError):
 | 
			
		||||
            im._repr_jpeg_()
 | 
			
		||||
        assert im._repr_jpeg_() is None
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@pytest.mark.skipif(not is_win32(), reason="Windows only")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -532,11 +532,10 @@ class TestFilePng:
 | 
			
		|||
            assert repr_png.format == "PNG"
 | 
			
		||||
            assert_image_equal(im, repr_png)
 | 
			
		||||
 | 
			
		||||
    def test_repr_png_error(self):
 | 
			
		||||
    def test_repr_png_error_returns_none(self):
 | 
			
		||||
        im = hopper("F")
 | 
			
		||||
 | 
			
		||||
        with pytest.raises(ValueError):
 | 
			
		||||
            im._repr_png_()
 | 
			
		||||
        assert im._repr_png_() is None
 | 
			
		||||
 | 
			
		||||
    def test_chunk_order(self, tmp_path):
 | 
			
		||||
        with Image.open("Tests/images/icc_profile.png") as im:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user