Skip to content

Commit

Permalink
ImageOps.box_blur is deprecated, use ImageFilter.BoxBlur instead
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 10, 2018
1 parent 05cb44f commit 0b43e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/test_box_blur.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from helper import unittest, PillowTestCase

from PIL import Image, ImageOps
from PIL import Image, ImageFilter


sample = Image.new("L", (7, 5))
Expand All @@ -16,7 +16,7 @@
class TestBoxBlurApi(PillowTestCase):

def test_imageops_box_blur(self):
i = ImageOps.box_blur(sample, 1)
i = sample.filter(ImageFilter.BoxBlur(1))
self.assertEqual(i.mode, sample.mode)
self.assertEqual(i.size, sample.size)
self.assertIsInstance(i, Image.Image)
Expand Down

0 comments on commit 0b43e84

Please sign in to comment.