Skip to content

Commit

Permalink
assertTrue -> assertIn
Browse files Browse the repository at this point in the history
  • Loading branch information
gouzil committed Dec 4, 2023
1 parent ec84cc6 commit e319064
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/dygraph_to_static/test_place.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ def test_place(self):
self.assertIsNone(x.place())
self.assertTrue(len(w) == 1)
if paddle.framework.use_pir_api():
self.assertTrue(
"Value do not have 'place'" in str(w[-1].message)
)
self.assertIn("Value do not have 'place'", str(w[-1].message))


if __name__ == '__main__':
Expand Down

0 comments on commit e319064

Please sign in to comment.