Skip to content

Commit fa8cdcc

Browse files
authored
[tests] deflake dither test (#36284)
1 parent 60226c6 commit fa8cdcc

14 files changed

+18
-19
lines changed

src/transformers/models/audio_spectrogram_transformer/feature_extraction_audio_spectrogram_transformer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def __call__(
193193
)
194194
else:
195195
logger.warning(
196-
"It is strongly recommended to pass the `sampling_rate` argument to this function. "
196+
f"It is strongly recommended to pass the `sampling_rate` argument to `{self.__class__.__name__}()`. "
197197
"Failing to do so can result in silent errors that might be hard to debug."
198198
)
199199

src/transformers/models/clap/feature_extraction_clap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def __call__(
308308
)
309309
else:
310310
logger.warning(
311-
"It is strongly recommended to pass the `sampling_rate` argument to this function. "
311+
f"It is strongly recommended to pass the `sampling_rate` argument to `{self.__class__.__name__}()`. "
312312
"Failing to do so can result in silent errors that might be hard to debug."
313313
)
314314

src/transformers/models/clvp/feature_extraction_clvp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def __call__(
188188
)
189189
else:
190190
logger.warning(
191-
"It is strongly recommended to pass the `sampling_rate` argument to this function. "
191+
f"It is strongly recommended to pass the `sampling_rate` argument to `{self.__class__.__name__}()`. "
192192
"Failing to do so can result in silent errors that might be hard to debug."
193193
)
194194

src/transformers/models/dac/feature_extraction_dac.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __call__(
108108
)
109109
else:
110110
logger.warning(
111-
"It is strongly recommended to pass the `sampling_rate` argument to this function. "
111+
f"It is strongly recommended to pass the `sampling_rate` argument to `{self.__class__.__name__}()`. "
112112
"Failing to do so can result in silent errors that might be hard to debug."
113113
)
114114

src/transformers/models/encodec/feature_extraction_encodec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __call__(
132132
)
133133
else:
134134
logger.warning(
135-
"It is strongly recommended to pass the `sampling_rate` argument to this function. "
135+
f"It is strongly recommended to pass the `sampling_rate` argument to `{self.__class__.__name__}()`. "
136136
"Failing to do so can result in silent errors that might be hard to debug."
137137
)
138138

src/transformers/models/musicgen_melody/feature_extraction_musicgen_melody.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def __call__(
242242

243243
if sampling_rate is None:
244244
logger.warning_once(
245-
"It is strongly recommended to pass the `sampling_rate` argument to this function. "
245+
f"It is strongly recommended to pass the `sampling_rate` argument to `{self.__class__.__name__}()`. "
246246
"Failing to do so can result in silent errors that might be hard to debug."
247247
)
248248

src/transformers/models/seamless_m4t/feature_extraction_seamless_m4t.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def __call__(
225225
)
226226
else:
227227
logger.warning(
228-
"It is strongly recommended to pass the `sampling_rate` argument to this function. "
228+
f"It is strongly recommended to pass the `sampling_rate` argument to `{self.__class__.__name__}()`. "
229229
"Failing to do so can result in silent errors that might be hard to debug."
230230
)
231231

src/transformers/models/speech_to_text/feature_extraction_speech_to_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def __call__(
248248
)
249249
else:
250250
logger.warning(
251-
"It is strongly recommended to pass the `sampling_rate` argument to this function. "
251+
f"It is strongly recommended to pass the `sampling_rate` argument to `{self.__class__.__name__}()`. "
252252
"Failing to do so can result in silent errors that might be hard to debug."
253253
)
254254

src/transformers/models/speecht5/feature_extraction_speecht5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def __call__(
252252
)
253253
else:
254254
logger.warning(
255-
"It is strongly recommended to pass the ``sampling_rate`` argument to this function. "
255+
f"It is strongly recommended to pass the `sampling_rate` argument to `{self.__class__.__name__}()`. "
256256
"Failing to do so can result in silent errors that might be hard to debug."
257257
)
258258

src/transformers/models/univnet/feature_extraction_univnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def __call__(
370370
)
371371
else:
372372
logger.warning(
373-
"It is strongly recommended to pass the `sampling_rate` argument to this function. "
373+
f"It is strongly recommended to pass the `sampling_rate` argument to `{self.__class__.__name__}()`. "
374374
"Failing to do so can result in silent errors that might be hard to debug."
375375
)
376376

0 commit comments

Comments
 (0)