Skip to content

Commit

Permalink
fix: Replaced deprecated unittest method with the correct one (#32198)
Browse files Browse the repository at this point in the history
Replaced deprecated unittest method with the correct one.
  • Loading branch information
Sai-Suraj-27 authored Jul 24, 2024
1 parent edd68f4 commit 85a1269
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/models/llava/test_processor_llava.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ def test_chat_template(self):
]

formatted_prompt = processor.apply_chat_template(messages, add_generation_prompt=True)
self.assertEquals(expected_prompt, formatted_prompt)
self.assertEqual(expected_prompt, formatted_prompt)
2 changes: 1 addition & 1 deletion tests/models/llava_next/test_processor_llava_next.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def test_chat_template(self):
]

formatted_prompt = processor.apply_chat_template(messages, add_generation_prompt=True)
self.assertEquals(expected_prompt, formatted_prompt)
self.assertEqual(expected_prompt, formatted_prompt)
2 changes: 1 addition & 1 deletion tests/models/vipllava/test_processor_vipllava.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def test_chat_template(self):
]

formatted_prompt = processor.apply_chat_template(messages, add_generation_prompt=True)
self.assertEquals(expected_prompt, formatted_prompt)
self.assertEqual(expected_prompt, formatted_prompt)

0 comments on commit 85a1269

Please sign in to comment.