Commit 36b451a4 authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

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
parent 070ec550
...@@ -120,7 +120,7 @@ class TestCaseMixin(unittest.TestCase): ...@@ -120,7 +120,7 @@ class TestCaseMixin(unittest.TestCase):
# all(norm_fn(input - other) <= atol + rtol * norm_fn(other)). # all(norm_fn(input - other) <= atol + rtol * norm_fn(other)).
self.assertClose( 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( def assertClose(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment