From 9ad5f8141fdfb805f1b619252a28a927566b31c2 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Wed, 18 Oct 2023 14:07:43 +0200 Subject: [PATCH] fix oin in test --- test/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_utils.py b/test/test_utils.py index b13bd0f0f5b..2999e84bf8a 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -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)