Skip to content

Commit

Permalink
improve deprecation test
Browse files Browse the repository at this point in the history
Signed-off-by: xavier dupré <xavier.dupre@gmail.com>
  • Loading branch information
sdpython committed Apr 6, 2021
1 parent d53c2db commit 7aff2ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_algebra_deprecation.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def test_sub_operator(self):
target_opset=TARGET_OPSET)
mes = None
for w in ws:
if w.category == DeprecationWarning:
if (w.category == DeprecationWarning and
'numpy' not in str(w.message).lower()):
mes = w.message
self.assertTrue(mes is not None)
self.assertIn('will be removed', str(mes))
Expand Down

0 comments on commit 7aff2ff

Please sign in to comment.