Skip to content

Commit 6f32dc0

Browse files
eqypytorchmergebot
authored andcommitted
Don't pass error message as places in assertGreaterAlmostEqual (pytorch#130648)
Pull Request resolved: pytorch#130648 Approved by: https://github.com/awgu
1 parent dff9d68 commit 6f32dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/testing/_internal/distributed/distributed_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4107,7 +4107,7 @@ def _test_barrier_helper(
41074107
self.assertGreaterAlmostEqual(
41084108
float(time.time()),
41094109
float(expected_time[0]),
4110-
"destination rank: %d, my rank: %d" % (dest, rank)
4110+
msg="destination rank: %d, my rank: %d" % (dest, rank)
41114111
+ " (if you see this failure, please report in #14554)",
41124112
)
41134113

0 commit comments

Comments
 (0)