mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Restored test
This commit is contained in:
		
							parent
							
								
									9087599e60
								
							
						
					
					
						commit
						8e81e0dd0e
					
				| 
						 | 
					@ -264,6 +264,19 @@ def test_ellipse2():
 | 
				
			||||||
        helper_ellipse(mode, BBOX2)
 | 
					        helper_ellipse(mode, BBOX2)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def test_ellipse_translucent():
 | 
				
			||||||
 | 
					    # Arrange
 | 
				
			||||||
 | 
					    im = Image.new("RGB", (W, H))
 | 
				
			||||||
 | 
					    draw = ImageDraw.Draw(im, "RGBA")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Act
 | 
				
			||||||
 | 
					    draw.ellipse(BBOX1, fill=(0, 255, 0, 127))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Assert
 | 
				
			||||||
 | 
					    expected = Image.open("Tests/images/imagedraw_ellipse_translucent.png")
 | 
				
			||||||
 | 
					    assert_image_similar(im, expected, 1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def test_ellipse_edge():
 | 
					def test_ellipse_edge():
 | 
				
			||||||
    # Arrange
 | 
					    # Arrange
 | 
				
			||||||
    im = Image.new("RGB", (W, H))
 | 
					    im = Image.new("RGB", (W, H))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user