From 36b451a49bdc481fb32707323c5bca53c34ac369 Mon Sep 17 00:00:00 2001 From: Jeremy Reizenstein Date: Thu, 3 Jun 2021 18:29:42 -0700 Subject: [PATCH] Test failures print message in assertNormsClose Summary: Restore assertNormsClose's printing of its message on failure which I broke in D26233419 (https://github.com/facebookresearch/pytorch3d/commit/cd9786e787386c185ef915b3983c5d2861a32907). Reviewed By: nikhilaravi Differential Revision: D28799743 fbshipit-source-id: e7a24b2558b68991c731bbd55fb3ca6c1df98f69 --- tests/common_testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common_testing.py b/tests/common_testing.py index 0f32e7e2..b1026257 100644 --- a/tests/common_testing.py +++ b/tests/common_testing.py @@ -120,7 +120,7 @@ class TestCaseMixin(unittest.TestCase): # all(norm_fn(input - other) <= atol + rtol * norm_fn(other)). self.assertClose( - diff + other_, other_, rtol=rtol, atol=atol, equal_nan=equal_nan + diff + other_, other_, rtol=rtol, atol=atol, equal_nan=equal_nan, msg=msg ) def assertClose(