Skip to content

Commit 8de799c

Browse files
committed
remove duplicate
1 parent 1433783 commit 8de799c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

tests/models/transformers/test_models_transformer_qwenimage.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -145,23 +145,6 @@ def test_infers_text_seq_len_from_mask(self):
145145
self.assertIsNone(per_sample_len_none)
146146
self.assertIsNone(normalized_mask_none)
147147

148-
def test_deprecated_txt_seq_lens_warning(self):
149-
"""Test that passing the deprecated txt_seq_lens parameter raises a FutureWarning."""
150-
init_dict, inputs = self.prepare_init_args_and_inputs_for_common()
151-
model = self.model_class(**init_dict).to(torch_device)
152-
model.eval()
153-
154-
# Add the deprecated txt_seq_lens parameter
155-
inputs["txt_seq_lens"] = [inputs["encoder_hidden_states"].shape[1]]
156-
157-
with self.assertWarns(FutureWarning) as warning:
158-
with torch.no_grad():
159-
_ = model(**inputs)
160-
161-
# Verify the warning message mentions the deprecated parameter
162-
self.assertIn("txt_seq_lens", str(warning.warning))
163-
self.assertIn("deprecated", str(warning.warning).lower())
164-
165148
def test_non_contiguous_attention_mask(self):
166149
"""Test that non-contiguous masks work correctly (e.g., [1, 0, 1, 0, 1, 0, 0])"""
167150
init_dict, inputs = self.prepare_init_args_and_inputs_for_common()

0 commit comments

Comments
 (0)