Skip to content

Commit 908742d

Browse files
authored
Fix DeprecationWarning
This commit fixes `DeprecationWarning: Please use assertEqual instead. self.assertEquals(len(scales_to_logits), expected_num_logits[i])` deprecation warning.
1 parent 83d827d commit 908742d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

research/deeplab/model_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def testBuildDeepLabv2(self):
7878

7979
# Expected number of logits = len(image_pyramid) + 1, since the
8080
# last logits is merged from all the scales.
81-
self.assertEquals(len(scales_to_logits), expected_num_logits[i])
81+
self.assertEqual(len(scales_to_logits), expected_num_logits[i])
8282

8383
def testForwardpassDeepLabv3plus(self):
8484
crop_size = [33, 33]

0 commit comments

Comments
 (0)