fix: Replace deprecated assertEquals with assertEqual (#30241)

Replace deprecated assertEquals with assertEqual.
This commit is contained in:
Sai-Suraj-27
2024-04-15 14:06:06 +05:30
committed by GitHub
parent 8fd2de933c
commit 06b1192768
12 changed files with 36 additions and 36 deletions

View File

@@ -277,7 +277,7 @@ class Speech2TextFeatureExtractionTest(SequenceFeatureExtractionTestMixin, unitt
input_speech = self._load_datasamples(1)
feature_extractor = self.feature_extraction_class(**self.feat_extract_tester.prepare_feat_extract_dict())
input_features = feature_extractor(input_speech, return_tensors="pt").input_features
self.assertEquals(input_features.shape, (1, 584, 24))
self.assertEqual(input_features.shape, (1, 584, 24))
self.assertTrue(np.allclose(input_features[0, 0, :30], expected, atol=1e-4))
def test_feat_extract_from_and_save_pretrained(self):