Skip to content

Commit

Permalink
Fix test for debug log for python 3.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
miyakogi committed May 9, 2019
1 parent e2db902 commit 9326ff2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,13 @@ async def test_level_debug(self):
self.assertTrue(self.logger.isEnabledFor(logging.DEBUG))

self.assertIn('listening on', self.mock.call_args_list[0][0][0])
self.assertIn('SEND', self.mock.call_args_list[2][0][0])
self.assertIn('RECV', self.mock.call_args_list[4][0][0])
if self.mock.call_args_list[1][0][0] == '\n':
# python < 3.7.3
self.assertIn('SEND', self.mock.call_args_list[2][0][0])
self.assertIn('RECV', self.mock.call_args_list[4][0][0])
else:
self.assertIn('SEND', self.mock.call_args_list[1][0][0])
self.assertIn('RECV', self.mock.call_args_list[2][0][0])

@unittest.skipIf(current_platform().startswith('win'), 'error on windows')
@sync
Expand Down

0 comments on commit 9326ff2

Please sign in to comment.