Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920) #93920

Merged
merged 1 commit into from
Jun 17, 2022
Merged

test_logging: Fix BytesWarning in SysLogHandlerTest (GH-93920) #93920

merged 1 commit into from
Jun 17, 2022

Commits on Jun 16, 2022

  1. test_logging: Fix BytesWarning in SysLogHandlerTest

    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
    vstinner committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    ec25b95 View commit details
    Browse the repository at this point in the history