From 5ee0109297425f7f6e32d1082ad8a36631678dc2 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 10 Jul 2020 10:51:25 -0400 Subject: [PATCH] variable name should match that of tested method --- test/test_functional_tensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_functional_tensor.py b/test/test_functional_tensor.py index 95f7383a4f7..d23930e7313 100644 --- a/test/test_functional_tensor.py +++ b/test/test_functional_tensor.py @@ -328,8 +328,8 @@ def test_resize(self): script_size = [size, ] else: script_size = size - pad_tensor_script = script_fn(tensor, size=script_size, interpolation=interpolation) - self.assertTrue(resized_tensor.equal(pad_tensor_script), msg="{}, {}".format(size, interpolation)) + resize_result = script_fn(tensor, size=script_size, interpolation=interpolation) + self.assertTrue(resized_tensor.equal(resize_result), msg="{}, {}".format(size, interpolation)) def test_resized_crop(self): # test values of F.resized_crop in several cases: