Skip to content

Commit

Permalink
Python 3 fixes to unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Feb 8, 2016
1 parent cc49b94 commit b8ab6b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test_merry.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ def f():

f()
self.assertIn('Traceback', stream.getvalue())
self.assertIn('ZeroDivisionError: integer division or modulo by zero',
stream.getvalue())
self.assertIn('ZeroDivisionError: ', stream.getvalue())

def test_custom_logger(self):
my_logger = logging.getLogger('foo')
Expand All @@ -229,8 +228,7 @@ def f():

f()
self.assertIn('Traceback', stream.getvalue())
self.assertIn('ZeroDivisionError: integer division or modulo by zero',
stream.getvalue())
self.assertIn('ZeroDivisionError: ', stream.getvalue())


if __name__ == '__main__':
Expand Down

0 comments on commit b8ab6b3

Please sign in to comment.