Skip to content

Commit

Permalink
use assert_equal instead of assert_true for compatibility with curren…
Browse files Browse the repository at this point in the history
…t version of testify
  • Loading branch information
ny2ko committed Feb 27, 2014
1 parent b56d982 commit b9d6e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testing_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class NoWarningsTest(T.TestCase):
def test_no_warnings(self):
with mock.patch('sys.stderr') as stderr:
vimap.exception_handling.print_warning('')
T.assert_true(stderr.write.called)
T.assert_true(stderr.flush.called)
T.assert_equal(True, stderr.write.called)
T.assert_equal(True, stderr.flush.called)

with T.assert_raises(AssertionError):
with vimap.testing.no_warnings():
Expand Down

0 comments on commit b9d6e5f

Please sign in to comment.