Skip to content

Commit

Permalink
Fix an overzealous test (#1749)
Browse files Browse the repository at this point in the history
This PR fixes one part of the cause of #1748, namely that a test was
failing on warnings that were unrelated to the test purpose.
  • Loading branch information
mdickinson committed Jun 26, 2023
1 parent 872def3 commit d066c6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion traits/tests/test_configure_traits.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,8 @@ def test_edit_not_given(self):
warnings.simplefilter("always", DeprecationWarning)
model.configure_traits()
mock_view.assert_called_once()
self.assertEqual(len(captured_warnings), 0)

all_warnings = "".join(
str(warning.message) for warning in captured_warnings
)
self.assertNotIn("edit argument", all_warnings)

0 comments on commit d066c6d

Please sign in to comment.