Skip to content

Commit 1e3803f

Browse files
author
Sean Sullivan
committed
More text that is slightly different between pillow versions
1 parent 210ea46 commit 1e3803f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_drawing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_gen_debug_img():
4343
expected = Image.open("./tests/dat/gen_debug_img.png")
4444
img = drawing.gen_debug_img(width, height, text, thickness)
4545

46-
np.testing.assert_equal(np.array(expected), np.array(img))
46+
np.testing.assert_array_almost_equal(np.array(expected), np.array(img))
4747

4848
def test_gen_overlay():
4949
img = drawing.gen_empty(256, 256)
@@ -55,7 +55,7 @@ def test_gen_debug_overlay():
5555
img = drawing.gen_empty(256, 256)
5656
expected = Path("./tests/dat/gen_debug_overlay.txt").read_bytes()
5757
actual = drawing.gen_debug_overlay(img, "hello, world!")
58-
np.testing.assert_array_almost_equal(np.array(expected), np.array(img))
58+
np.testing.assert_array_almost_equal(np.array(expected), np.array(actual))
5959

6060
def test_generate_x_tile():
6161
expected = Path("./tests/dat/gen_error.txt").read_bytes()

0 commit comments

Comments
 (0)