Skip to content

Conversation

@vstinner
Copy link
Member

Initialize log_output to an empty byte strings to prevent the error
(when running the test with python -bb):

Traceback (most recent call last):
File "Lib\test\test_logging.py", line 2013, in test_udp_reconnection
self.assertEqual(self.log_output, b'<11>sp\xc3\xa4m\x00')
(...)
BytesWarning: Comparison between bytes and string

Initialize log_output to an empty byte strings to prevent the error
(when running the test with python -bb):

Traceback (most recent call last):
  File "Lib\test\test_logging.py", line 2013, in test_udp_reconnection
    self.assertEqual(self.log_output, b'<11>sp\xc3\xa4m\x00')
  (...)
BytesWarning: Comparison between bytes and string