Skip to content

Commit

Permalink
fix oin in test
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Oct 18, 2023
1 parent 7825de3 commit 9ad5f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def test_draw_boxes():
res = Image.fromarray(result.permute(1, 2, 0).contiguous().numpy())
res.save(path)

if PILLOW_VERSION >= (8, 2):
if PILLOW_VERSION >= (10, 1):
# The reference image is only valid for new PIL versions
expected = torch.as_tensor(np.array(Image.open(path))).permute(2, 0, 1)
assert_equal(result, expected)
Expand Down

0 comments on commit 9ad5f81

Please sign in to comment.