======================================================================
FAIL: test_configure_must_log_info_and_higher (snapcraft.tests.test_log.LogTestCase)
snapcraft.tests.test_log.LogTestCase.test_configure_must_log_info_and_higher
----------------------------------------------------------------------
testtools.testresult.real._StringException: pythonlogging:'': {{{
Test info
Test warning
Test error
Test critical
}}}
Traceback (most recent call last):
File "/tmp/autopkgtest.WnA8Mh/build.yWF/snapcraft/snapcraft/tests/test_log.py", line 94, in test_configure_must_log_info_and_higher
self.fake_terminal.getvalue(stderr=True), Equals(expected_err))
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 435, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = '''\
\x1b[0;31mTest error\x1b[0m
\x1b[1;31mTest critical\x1b[0m
'''
actual = '''\
/usr/lib/python3/dist-packages/fixtures/fixture.py:86: ResourceWarning: unclosed <socket.socket fd=56, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0>
self._cleanups.push(cleanup, *args, **kwargs)
\x1b[0;31mTest error\x1b[0m
\x1b[1;31mTest critical\x1b[0m
'''
----------------------------------------------------------------------
Ran 2021 tests in 2521.797s