Skip to content

Commit

Permalink
More text that is slightly different between pillow versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Sullivan committed Nov 10, 2023
1 parent 210ea46 commit 1e3803f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_gen_debug_img():
expected = Image.open("./tests/dat/gen_debug_img.png")
img = drawing.gen_debug_img(width, height, text, thickness)

np.testing.assert_equal(np.array(expected), np.array(img))
np.testing.assert_array_almost_equal(np.array(expected), np.array(img))

def test_gen_overlay():
img = drawing.gen_empty(256, 256)
Expand All @@ -55,7 +55,7 @@ def test_gen_debug_overlay():
img = drawing.gen_empty(256, 256)
expected = Path("./tests/dat/gen_debug_overlay.txt").read_bytes()
actual = drawing.gen_debug_overlay(img, "hello, world!")
np.testing.assert_array_almost_equal(np.array(expected), np.array(img))
np.testing.assert_array_almost_equal(np.array(expected), np.array(actual))

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

0 comments on commit 1e3803f

Please sign in to comment.